1 |
commit: c6a0dadddff0534c16a526b828b5670ba762a6c5 |
2 |
Author: Sébastien Fabbro <bicatali <AT> gentoo <DOT> org> |
3 |
AuthorDate: Mon Jul 17 21:54:15 2017 +0000 |
4 |
Commit: Sebastien Fabbro <bicatali <AT> gentoo <DOT> org> |
5 |
CommitDate: Tue Jul 18 16:09:36 2017 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=c6a0dadd |
7 |
|
8 |
net-libs/pacparser: version bump |
9 |
|
10 |
Package-Manager: Portage-2.3.6, Repoman-2.3.2 |
11 |
|
12 |
net-libs/pacparser/Manifest | 1 + |
13 |
net-libs/pacparser/metadata.xml | 1 - |
14 |
net-libs/pacparser/pacparser-1.3.7.ebuild | 61 +++++++++++++++++++++++++++++++ |
15 |
3 files changed, 62 insertions(+), 1 deletion(-) |
16 |
|
17 |
diff --git a/net-libs/pacparser/Manifest b/net-libs/pacparser/Manifest |
18 |
index 7eb5deafff1..91ab5be6434 100644 |
19 |
--- a/net-libs/pacparser/Manifest |
20 |
+++ b/net-libs/pacparser/Manifest |
21 |
@@ -1 +1,2 @@ |
22 |
DIST pacparser-1.3.1.tar.gz 1229362 SHA256 040fb94c420f6aaad295b0b60cf1659f996fee1997c332bec2a6390955276585 SHA512 20295667d92eb5385429c085c14ca8dc1ba216487ff474304433f99119216934be2dd1647452173418de31f5345679dd7159eafd331e40a2b87564f878d31349 WHIRLPOOL 47caf428b4574d9fbb40cffe46afb38cc6bb786382805754f1653e3d554af60e695e1718902c94822b229b7fb4f9748257745a1b3faedfa02cc7b06ba457768f |
23 |
+DIST pacparser-1.3.7.tar.gz 905596 SHA256 eb48ec2fc202d12a4b882133048c7590329849f32c2285bc4dbe418f29aad249 SHA512 979238204cd352ecf502a5a6216a35d7c47e82a173c32c6f0a5166f1fe790c66ac74ec1d9d0a58b54038d19e893f8b365ed868664f84ab9d5e653584bf20130b WHIRLPOOL be594e02c2eb41edf737ebd0a1b24c4aa044df9883f749f2d625858b16b7d15bd35045c481717c08ec65ec7043c09ef31d2a16d0c4bae6b1c78ab5fa86418c3e |
24 |
|
25 |
diff --git a/net-libs/pacparser/metadata.xml b/net-libs/pacparser/metadata.xml |
26 |
index afeebf32afe..f15997fe5b7 100644 |
27 |
--- a/net-libs/pacparser/metadata.xml |
28 |
+++ b/net-libs/pacparser/metadata.xml |
29 |
@@ -21,7 +21,6 @@ |
30 |
supported right now). |
31 |
</longdescription> |
32 |
<upstream> |
33 |
- <remote-id type="google-code">pacproxy</remote-id> |
34 |
<remote-id type="github">pacparser/pacparser</remote-id> |
35 |
</upstream> |
36 |
</pkgmetadata> |
37 |
|
38 |
diff --git a/net-libs/pacparser/pacparser-1.3.7.ebuild b/net-libs/pacparser/pacparser-1.3.7.ebuild |
39 |
new file mode 100644 |
40 |
index 00000000000..08330b53c6a |
41 |
--- /dev/null |
42 |
+++ b/net-libs/pacparser/pacparser-1.3.7.ebuild |
43 |
@@ -0,0 +1,61 @@ |
44 |
+# Copyright 1999-2017 Gentoo Foundation |
45 |
+# Distributed under the terms of the GNU General Public License v2 |
46 |
+ |
47 |
+EAPI=6 |
48 |
+ |
49 |
+PYTHON_COMPAT=( python{2_7,3_4,3_5,3_6} ) |
50 |
+ |
51 |
+inherit eutils python-r1 toolchain-funcs |
52 |
+ |
53 |
+DESCRIPTION="Library to parse proxy auto-config files" |
54 |
+HOMEPAGE="http://pacparser.manugarg.com/" |
55 |
+SRC_URI="https://github.com/pacparser/${PN}/releases/download/${PV}/${P}.tar.gz" |
56 |
+ |
57 |
+LICENSE="LGPL-3" |
58 |
+SLOT="0/1" |
59 |
+KEYWORDS="~amd64 ~x86 ~amd64-linux ~x86-linux" |
60 |
+IUSE="doc python" |
61 |
+ |
62 |
+DEPEND="python? ( ${PYTHON_DEPS} )" |
63 |
+RDEPEND="${DEPEND}" |
64 |
+REQUIRED_USE="python? ( ${PYTHON_REQUIRED_USE} )" |
65 |
+ |
66 |
+# spidermonkey-1.7.0 is bundled |
67 |
+# tested unbundling with spidermonkey-1.8* and 1.7 |
68 |
+# and got many failures : unbundling not worth. |
69 |
+ |
70 |
+src_prepare() { |
71 |
+ default |
72 |
+ sed -e 's|CFLAGS = |CFLAGS := $(CFLAGS) |' \ |
73 |
+ -e 's|= $(PREFIX)|:= $(PREFIX)|g' \ |
74 |
+ -e "s|share/doc.*pacparser|share/doc/${PF}|g" \ |
75 |
+ -e "s|/lib|/$(get_libdir)|g" \ |
76 |
+ -i src/Makefile || die |
77 |
+ export NO_INTERNET=yes |
78 |
+ tc-export CC AR RANLIB |
79 |
+} |
80 |
+ |
81 |
+src_compile() { |
82 |
+ emake -C src spidermonkey/js/src |
83 |
+ sed -e '/CC = gcc/d' \ |
84 |
+ -i src/spidermonkey/js/src/config/Linux_All.mk || die |
85 |
+ emake -C src |
86 |
+ use python && python_foreach_impl emake -C src pymod |
87 |
+} |
88 |
+ |
89 |
+src_test() { |
90 |
+ emake -C src testpactester |
91 |
+} |
92 |
+ |
93 |
+src_install() { |
94 |
+ emake DESTDIR="${ED}" LIB_PREFIX="${ED}/usr/$(get_libdir)" -C src install |
95 |
+ dodoc README.md |
96 |
+ use python && python_foreach_impl \ |
97 |
+ emake DESTDIR="${D}" \ |
98 |
+ LIB_PREFIX="${D}/usr/$(get_libdir)" -C src install-pymod |
99 |
+ if use doc; then |
100 |
+ docompress -x /usr/share/doc/${PF}/{html,examples} |
101 |
+ else |
102 |
+ rm -r "${ED}"/usr/share/doc/${PF}/{html,examples} || die |
103 |
+ fi |
104 |
+} |