1 |
commit: 4b4580261e24940f3d1c98c199a4971c5eda389f |
2 |
Author: Ian Stakenvicius <axs <AT> gentoo <DOT> org> |
3 |
AuthorDate: Tue Oct 31 14:53:41 2017 +0000 |
4 |
Commit: Ian Stakenvicius <axs <AT> gentoo <DOT> org> |
5 |
CommitDate: Tue Oct 31 14:53:41 2017 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=4b458026 |
7 |
|
8 |
dev-lang/spidermonkey: drop 1.8.5-r4 |
9 |
|
10 |
Package-Manager: Portage-2.3.8, Repoman-2.3.3 |
11 |
|
12 |
dev-lang/spidermonkey/spidermonkey-1.8.5-r4.ebuild | 145 --------------------- |
13 |
1 file changed, 145 deletions(-) |
14 |
|
15 |
diff --git a/dev-lang/spidermonkey/spidermonkey-1.8.5-r4.ebuild b/dev-lang/spidermonkey/spidermonkey-1.8.5-r4.ebuild |
16 |
deleted file mode 100644 |
17 |
index a5e340c2686..00000000000 |
18 |
--- a/dev-lang/spidermonkey/spidermonkey-1.8.5-r4.ebuild |
19 |
+++ /dev/null |
20 |
@@ -1,145 +0,0 @@ |
21 |
-# Copyright 1999-2017 Gentoo Foundation |
22 |
-# Distributed under the terms of the GNU General Public License v2 |
23 |
- |
24 |
-EAPI="5" |
25 |
-WANT_AUTOCONF="2.1" |
26 |
-PYTHON_COMPAT=( python2_7 ) |
27 |
-PYTHON_REQ_USE="threads" |
28 |
-inherit autotools eutils toolchain-funcs multilib python-any-r1 versionator pax-utils |
29 |
- |
30 |
-MY_PN="js" |
31 |
-TARBALL_PV="$(replace_all_version_separators '' $(get_version_component_range 1-3))" |
32 |
-MY_P="${MY_PN}-${PV}" |
33 |
-TARBALL_P="${MY_PN}${TARBALL_PV}-1.0.0" |
34 |
-DESCRIPTION="Stand-alone JavaScript C library" |
35 |
-HOMEPAGE="https://developer.mozilla.org/en-US/docs/Mozilla/Projects/SpiderMonkey" |
36 |
-SRC_URI="https://archive.mozilla.org/pub/js/${TARBALL_P}.tar.gz |
37 |
- https://dev.gentoo.org/~axs/distfiles/${PN}-slot0-patches-01.tar.xz" |
38 |
- |
39 |
-LICENSE="NPL-1.1" |
40 |
-SLOT="0/mozjs185" |
41 |
-KEYWORDS="alpha amd64 arm ~arm64 hppa ia64 ~mips ppc ppc64 s390 sh sparc x86 ~amd64-fbsd ~x86-fbsd ~x64-macos" |
42 |
-IUSE="debug minimal static-libs test" |
43 |
- |
44 |
-S="${WORKDIR}/${MY_P}" |
45 |
-BUILDDIR="${S}/js/src" |
46 |
- |
47 |
-RDEPEND=">=dev-libs/nspr-4.7.0 |
48 |
- sys-libs/readline:0= |
49 |
- x64-macos? ( dev-libs/jemalloc )" |
50 |
-DEPEND="${RDEPEND} |
51 |
- ${PYTHON_DEPS} |
52 |
- app-arch/zip |
53 |
- virtual/pkgconfig" |
54 |
- |
55 |
-pkg_setup(){ |
56 |
- if [[ ${MERGE_TYPE} != "binary" ]]; then |
57 |
- export LC_ALL="C" |
58 |
- fi |
59 |
-} |
60 |
- |
61 |
-src_prepare() { |
62 |
- # https://bugzilla.mozilla.org/show_bug.cgi?id=628723#c43 |
63 |
- epatch "${WORKDIR}"/sm0/${P}-fix-install-symlinks.patch |
64 |
- # https://bugzilla.mozilla.org/show_bug.cgi?id=638056#c9 |
65 |
- epatch "${WORKDIR}"/sm0/${P}-fix-ppc64.patch |
66 |
- # https://bugs.gentoo.org/show_bug.cgi?id=400727 |
67 |
- # https://bugs.gentoo.org/show_bug.cgi?id=420471 |
68 |
- epatch "${WORKDIR}"/sm0/${P}-arm_respect_cflags-3.patch |
69 |
- # https://bugs.gentoo.org/show_bug.cgi?id=438746 |
70 |
- epatch "${WORKDIR}"/sm0/${PN}-1.8.7-freebsd-pthreads.patch |
71 |
- # https://bugs.gentoo.org/show_bug.cgi?id=441928 |
72 |
- epatch "${WORKDIR}"/sm0/${PN}-1.8.5-perf_event-check.patch |
73 |
- # https://bugs.gentoo.org/show_bug.cgi?id=439260 |
74 |
- epatch "${WORKDIR}"/sm0/${P}-symbol-versions.patch |
75 |
- # https://bugs.gentoo.org/show_bug.cgi?id=441934 |
76 |
- epatch "${WORKDIR}"/sm0/${PN}-1.8.5-ia64-fix.patch |
77 |
- epatch "${WORKDIR}"/sm0/${PN}-1.8.5-ia64-static-strings.patch |
78 |
- # https://bugs.gentoo.org/show_bug.cgi?id=431560 |
79 |
- epatch "${WORKDIR}"/sm0/${PN}-1.8.5-isfinite.patch |
80 |
- # https://bugs.gentoo.org/show_bug.cgi?id=552786 |
81 |
- epatch "${FILESDIR}"/${PN}-perl-defined-array-check.patch |
82 |
- |
83 |
- epatch_user |
84 |
- |
85 |
- cd "${BUILDDIR}" || die |
86 |
- eautoconf |
87 |
-} |
88 |
- |
89 |
-src_configure() { |
90 |
- cd "${BUILDDIR}" || die |
91 |
- |
92 |
- CC="$(tc-getCC)" CXX="$(tc-getCXX)" \ |
93 |
- AR="$(tc-getAR)" RANLIB="$(tc-getRANLIB)" \ |
94 |
- LD="$(tc-getLD)" \ |
95 |
- econf \ |
96 |
- ${myopts} \ |
97 |
- --enable-jemalloc \ |
98 |
- --enable-readline \ |
99 |
- --enable-threadsafe \ |
100 |
- --with-system-nspr \ |
101 |
- --disable-optimize \ |
102 |
- --disable-profile-guided-optimization \ |
103 |
- $(use_enable debug) \ |
104 |
- $(use_enable static-libs static) \ |
105 |
- $(use_enable test tests) |
106 |
-} |
107 |
- |
108 |
-cross_make() { |
109 |
- emake \ |
110 |
- CFLAGS="${BUILD_CFLAGS}" \ |
111 |
- CXXFLAGS="${BUILD_CXXFLAGS}" \ |
112 |
- AR="${BUILD_AR}" \ |
113 |
- CC="${BUILD_CC}" \ |
114 |
- CXX="${BUILD_CXX}" \ |
115 |
- RANLIB="${BUILD_RANLIB}" \ |
116 |
- "$@" |
117 |
-} |
118 |
-src_compile() { |
119 |
- cd "${BUILDDIR}" || die |
120 |
- if tc-is-cross-compiler; then |
121 |
- tc-export_build_env BUILD_{AR,CC,CXX,RANLIB} |
122 |
- cross_make jscpucfg host_jsoplengen host_jskwgen |
123 |
- cross_make -C config nsinstall |
124 |
- mv {,native-}jscpucfg || die |
125 |
- mv {,native-}host_jskwgen || die |
126 |
- mv {,native-}host_jsoplengen || die |
127 |
- mv config/{,native-}nsinstall || die |
128 |
- sed -i \ |
129 |
- -e 's@./jscpucfg@./native-jscpucfg@' \ |
130 |
- -e 's@./host_jskwgen@./native-host_jskwgen@' \ |
131 |
- -e 's@./host_jsoplengen@./native-host_jsoplengen@' \ |
132 |
- Makefile || die |
133 |
- sed -i -e 's@/nsinstall@/native-nsinstall@' config/config.mk || die |
134 |
- rm -f config/host_nsinstall.o \ |
135 |
- config/host_pathsub.o \ |
136 |
- host_jskwgen.o \ |
137 |
- host_jsoplengen.o || die |
138 |
- fi |
139 |
- emake |
140 |
-} |
141 |
- |
142 |
-src_test() { |
143 |
- cd "${BUILDDIR}/jsapi-tests" || die |
144 |
- # for bug 415791 |
145 |
- pax-mark mr jsapi-tests |
146 |
- emake check |
147 |
-} |
148 |
- |
149 |
-src_install() { |
150 |
- cd "${BUILDDIR}" || die |
151 |
- emake DESTDIR="${D}" install |
152 |
- # bug 437520 , exclude js shell for small systems |
153 |
- if ! use minimal ; then |
154 |
- dobin shell/js |
155 |
- pax-mark m "${ED}/usr/bin/js" |
156 |
- fi |
157 |
- dodoc ../../README |
158 |
- dohtml README.html |
159 |
- |
160 |
- if ! use static-libs; then |
161 |
- # We can't actually disable building of static libraries |
162 |
- # They're used by the tests and in a few other places |
163 |
- find "${D}" -iname '*.a' -delete || die |
164 |
- fi |
165 |
-} |