summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSebastien Fabbro <bicatali@gentoo.org>2013-11-26 05:29:31 +0000
committerSebastien Fabbro <bicatali@gentoo.org>2013-11-26 05:29:31 +0000
commit2efdb9603d149f89131bf4acdb5a842d1802ae49 (patch)
treedec49c8f1418b6706fd5b2370a8d8f89dd97bd46 /net-libs
parentBump (diff)
downloadhistorical-2efdb9603d149f89131bf4acdb5a842d1802ae49.tar.gz
historical-2efdb9603d149f89131bf4acdb5a842d1802ae49.tar.bz2
historical-2efdb9603d149f89131bf4acdb5a842d1802ae49.zip
Initial import
Package-Manager: portage-2.2.7/cvs/Linux x86_64 Manifest-Sign-Key: 0x13CB1360
Diffstat (limited to 'net-libs')
-rw-r--r--net-libs/pacparser/ChangeLog9
-rw-r--r--net-libs/pacparser/Manifest4
-rw-r--r--net-libs/pacparser/files/pacparser-1.3.1-makefile.patch66
-rw-r--r--net-libs/pacparser/metadata.xml26
-rw-r--r--net-libs/pacparser/pacparser-1.3.1.ebuild51
5 files changed, 156 insertions, 0 deletions
diff --git a/net-libs/pacparser/ChangeLog b/net-libs/pacparser/ChangeLog
new file mode 100644
index 000000000000..ff65d9097429
--- /dev/null
+++ b/net-libs/pacparser/ChangeLog
@@ -0,0 +1,9 @@
+# ChangeLog for net-libs/pacparser
+# Copyright 1999-2013 Gentoo Foundation; Distributed under the GPL v2
+# $Header: /var/cvsroot/gentoo-x86/net-libs/pacparser/ChangeLog,v 1.1 2013/11/26 05:29:31 bicatali Exp $
+
+*pacparser-1.3.1 (26 Nov 2013)
+
+ 26 Nov 2013; SĂ©bastien Fabbro <bicatali@gentoo.org>
+ +files/pacparser-1.3.1-makefile.patch, +metadata.xml, +pacparser-1.3.1.ebuild:
+ Initial import
diff --git a/net-libs/pacparser/Manifest b/net-libs/pacparser/Manifest
new file mode 100644
index 000000000000..c9887f752088
--- /dev/null
+++ b/net-libs/pacparser/Manifest
@@ -0,0 +1,4 @@
+AUX pacparser-1.3.1-makefile.patch 2265 SHA256 2e5b9fa7fbaad4ae818a608b6d5b667ee442a9a49f5b0f558361ea13dbf86670 SHA512 6812dc1482554053fedf0f522260cc5da6b5f9bfa9e1ccf51bb5d1ad92c3663122460c6d41f8c3a2318b37e251ec8bf5849f3f4140d2f6fd647d5be61544af51 WHIRLPOOL 85e985b0f4d28b9288b67741499f0bf2236fa0d2c3da142cfb9d365ccd1b3ce7548a427d0d23bc8838dc8ef333a82872f25088604b81d8e71d8ce4dac0731081
+DIST pacparser-1.3.1.tar.gz 1229362 SHA256 040fb94c420f6aaad295b0b60cf1659f996fee1997c332bec2a6390955276585 SHA512 20295667d92eb5385429c085c14ca8dc1ba216487ff474304433f99119216934be2dd1647452173418de31f5345679dd7159eafd331e40a2b87564f878d31349 WHIRLPOOL 47caf428b4574d9fbb40cffe46afb38cc6bb786382805754f1653e3d554af60e695e1718902c94822b229b7fb4f9748257745a1b3faedfa02cc7b06ba457768f
+EBUILD pacparser-1.3.1.ebuild 1234 SHA256 097bf613896b1b3f5e516b0952abc4bede6bcab5688c10d3824d64896d27c61a SHA512 23e0ff04c19b305aa590be98e1e1c6910137055c156741d0e71339e305dd42e2ecd81f0f2f9f83cf954c3fa564cbc46aff22400257b290dd0696b972a0cd8592 WHIRLPOOL 403936775c311e5ee4a5dbe5a3c45b7c373424d9bb51f02b02380078607fc1a75f563cd3dcb4383c5b3af9bcbce2116dbb167cadbb424b6a12d05938b62f314b
+MISC metadata.xml 1177 SHA256 42922085030073271f3a8cf8814693c065933cb20d057609259dfd367a70e9cc SHA512 e2165585a32c8ca65215e8f2704ccd9d4ea6e557c3f1ffc5f893c032cb0684fad017b672f4c4f655c84b51b67d85dd0dda07039ef4524484e0496703ce4dcecc WHIRLPOOL 5d32ac45c28bd1cec2167e152bb5e647aa3770748e23a1bdbd289da1b1c63f6b0f19643e64827d322566f7691a06215d17c71ac1d31fa19e6b551ca3a9d4069e
diff --git a/net-libs/pacparser/files/pacparser-1.3.1-makefile.patch b/net-libs/pacparser/files/pacparser-1.3.1-makefile.patch
new file mode 100644
index 000000000000..a1434075d18a
--- /dev/null
+++ b/net-libs/pacparser/files/pacparser-1.3.1-makefile.patch
@@ -0,0 +1,66 @@
+diff -Nur pacparser-1.3.1.orig/src/Makefile pacparser-1.3.1/src/Makefile
+--- pacparser-1.3.1.orig/src/Makefile 2013-11-26 04:21:24.000000000 +0000
++++ pacparser-1.3.1/src/Makefile 2013-11-26 04:27:11.000000000 +0000
+@@ -55,7 +55,7 @@
+ endif
+ endif
+
+-CFLAGS = -g -DXP_UNIX -Wall -DVERSION=$(VERSION)
++CFLAGS := $(CFLAGS) -g -DXP_UNIX -Wall -DVERSION=$(VERSION)
+
+ ifndef PYTHON
+ PYTHON = python
+@@ -67,13 +67,14 @@
+
+ LIBRARY_LINK = $(LIBRARY_NAME).$(SO_SUFFIX)
+ PREFIX := $(DESTDIR)$(PREFIX)
+-LIB_PREFIX = $(PREFIX)/lib
+-INC_PREFIX = $(PREFIX)/include
+-BIN_PREFIX = $(PREFIX)/bin
+-MAN_PREFIX = $(PREFIX)/share/man
++LIB_PREFIX := $(PREFIX)/lib
++INC_PREFIX := $(PREFIX)/include
++BIN_PREFIX := $(PREFIX)/bin
++MAN_PREFIX := $(PREFIX)/share/man
++DOC_PREFIX := $(PREFIX)/share/doc/pacparser
+
+ .PHONY: clean pymod install-pymod
+-all: testpactester
++all: pactester
+
+ spidermonkey/js/src: spidermonkey/js-?.?.?.tar.gz
+ tar xzvf spidermonkey/js-?.?.?.tar.gz -C spidermonkey
+@@ -97,7 +98,7 @@
+ ln -sf $(LIBRARY) $(LIBRARY_LINK)
+
+ pactester: pactester.c pacparser.h $(LIBRARY_LINK)
+- $(CC) pactester.c -o pactester -lpacparser -L. -I.
++ $(CC) $(CFLAGS) $(LDFLAGS) pactester.c -o pactester -lpacparser -L. -I.
+
+ testpactester: pactester
+ echo "Running tests for pactester."
+@@ -118,16 +119,20 @@
+ # install pacparser manpages
+ install -d $(MAN_PREFIX)/man3/
+ (test -d ../docs && install -m 644 ../docs/man/man3/*.3 $(MAN_PREFIX)/man3/) || true
++
++install-docs:
+ # install html docs
+- install -d $(PREFIX)/share/doc/pacparser/html/
+- (test -d ../docs/html && install -m 644 ../docs/html/* $(PREFIX)/share/doc/pacparser/html/) || true
++ install -d $(DOC_PREFIX)/html/
++ (test -d ../docs/html && install -m 644 ../docs/html/* $(DOC_PREFIX)/html/) || true
+ # install examples
+- install -d $(PREFIX)/share/doc/pacparser/examples/
+- (test -d ../examples && install -m 644 ../examples/* $(PREFIX)/share/doc//pacparser/examples/) || true
++ install -d $(DOC_PREFIX)/examples/
++ (test -d ../examples && install -m 644 ../examples/* $(DOC_PREFIX)/examples/) || true
+
+ # Targets to build python module
+ pymod: pacparser.o pacparser.h libjs.a
+ cd pymod && ARCHFLAGS="" $(PYTHON) setup.py build
++
++test-pymod: pymod
+ $(PYTHON) ../tests/runtests.py
+
+ install-pymod: pymod
diff --git a/net-libs/pacparser/metadata.xml b/net-libs/pacparser/metadata.xml
new file mode 100644
index 000000000000..67c25ef2c2c0
--- /dev/null
+++ b/net-libs/pacparser/metadata.xml
@@ -0,0 +1,26 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+<maintainer>
+ <email>bicatali@gentoo.org</email>
+</maintainer>
+<longdescription>
+ A library to parse proxy auto-config (PAC) files. Proxy auto-config
+ files are a vastly used proxy configuration method these days. Web
+ browsers can use a PAC file to determine which proxy server to use
+ or whether to go direct for a given URL. PAC files are written in
+ JavaScript and can be programmed to return different proxy methods
+ (e.g. "PROXY proxy1:port; DIRECT") depending upon URL, source IP
+ address, protocol, time of the day etc. PAC files introduce a lot
+ of possibilities.
+ Needless to say, PAC files are now a widely accepted method for
+ proxy configuration management and companies all over are using
+ them in corporate environments. Almost all popular web browsers
+ support PAC files. The idea behind pacparser is to make it easy to
+ add this PAC file parsing capability to any program (C and Python
+ supported right now).
+</longdescription>
+<upstream>
+ <remote-id type="google-code">pacproxy</remote-id>
+</upstream>
+</pkgmetadata>
diff --git a/net-libs/pacparser/pacparser-1.3.1.ebuild b/net-libs/pacparser/pacparser-1.3.1.ebuild
new file mode 100644
index 000000000000..4ee0d0c51a73
--- /dev/null
+++ b/net-libs/pacparser/pacparser-1.3.1.ebuild
@@ -0,0 +1,51 @@
+# Copyright 1999-2013 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Header: /var/cvsroot/gentoo-x86/net-libs/pacparser/pacparser-1.3.1.ebuild,v 1.1 2013/11/26 05:29:31 bicatali Exp $
+
+EAPI=5
+
+PYTHON_COMPAT=( python{2_6,2_7,3_2,3_3} )
+
+inherit eutils python-r1 multilib
+
+DESCRIPTION="Library to parse proxy auto-config files"
+HOMEPAGE="http://code.google.com/p/pacparser/"
+SRC_URI="http://${PN}.googlecode.com/files/${P}.tar.gz"
+
+LICENSE="LGPL-3"
+SLOT="0"
+KEYWORDS="~amd64 ~x86"
+IUSE="doc python"
+
+DEPEND="python? ( ${PYTHON_DEPS} )"
+RDEPEND="${DEPEND}"
+REQUIRED_USE="python? ( ${PYTHON_REQUIRED_USE} )"
+
+# spidermonkey-1.7.0 is bundled
+# tested unbundling with spidermonkey-1.8* and 17
+# failures : unbundling not worth
+
+src_prepare() {
+ epatch "${FILESDIR}"/${P}-makefile.patch
+ export NO_INTERNET=yes
+}
+
+src_compile() {
+ emake -C src
+ use python && python_foreach_impl emake -C src pymod
+}
+
+src_test() {
+ emake -C src testpactester
+ use python && emake -C src test-pymod
+}
+
+src_install() {
+ emake DESTDIR="${D}" LIB_PREFIX="${D}/usr/$(get_libdir)" -C src install
+ dodoc README
+ use python && python_foreach_impl \
+ emake DESTDIR="${D}" \
+ LIB_PREFIX="${D}/usr/$(get_libdir)" -C src install-pymod
+ use doc && emake DESTDIR="${D}" \
+ DOC_PREFIX="${D}/usr/share/doc/${PF}" -C src install-docs
+}