1 |
commit: 609f14e782dd4c15662d1946e2aa6ca0b65ba26a |
2 |
Author: Kent Fredric <kentnl <AT> gentoo <DOT> org> |
3 |
AuthorDate: Wed Aug 7 17:45:11 2019 +0000 |
4 |
Commit: Kent Fredric <kentnl <AT> gentoo <DOT> org> |
5 |
CommitDate: Wed Aug 7 17:46:20 2019 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=609f14e7 |
7 |
|
8 |
dev-lang/parrot: -r1 bump for EAPI7 |
9 |
|
10 |
Looks like no new releases are happening in the near future, so |
11 |
bumping the last release by one -r step for EAPI7 conversion |
12 |
|
13 |
- All use of "|| die" removed from builtins (these have auto-died' |
14 |
since EAPI4 ) |
15 |
- Rework doc handling logic to avoid use of banned "dohtml" |
16 |
- Stripped auxilliary copies of docs in "docs/${PF}/parrot/${PV}" |
17 |
- Remove excess indirection of "doc/${PF}/editor/editor" |
18 |
- Unified docs, examples, and html handling with "einstalldocs" |
19 |
|
20 |
Package-Manager: Portage-2.3.66, Repoman-2.3.16 |
21 |
Signed-off-by: Kent Fredric <kentnl <AT> gentoo.org> |
22 |
|
23 |
dev-lang/parrot/parrot-8.1.0-r2.ebuild | 101 +++++++++++++++++++++++++++++++++ |
24 |
1 file changed, 101 insertions(+) |
25 |
|
26 |
diff --git a/dev-lang/parrot/parrot-8.1.0-r2.ebuild b/dev-lang/parrot/parrot-8.1.0-r2.ebuild |
27 |
new file mode 100644 |
28 |
index 00000000000..85f839ba76a |
29 |
--- /dev/null |
30 |
+++ b/dev-lang/parrot/parrot-8.1.0-r2.ebuild |
31 |
@@ -0,0 +1,101 @@ |
32 |
+# Copyright 1999-2019 Gentoo Authors |
33 |
+# Distributed under the terms of the GNU General Public License v2 |
34 |
+ |
35 |
+EAPI=7 |
36 |
+ |
37 |
+inherit eutils multilib |
38 |
+ |
39 |
+# weird failures |
40 |
+RESTRICT="test" |
41 |
+ |
42 |
+DESCRIPTION="Virtual machine designed to compile and execute bytecode for dynamic languages" |
43 |
+HOMEPAGE="http://www.parrot.org/" |
44 |
+SRC_URI="ftp://ftp.parrot.org/pub/parrot/releases/all/${PV}/${P}.tar.gz" |
45 |
+ |
46 |
+LICENSE="Artistic-2" |
47 |
+SLOT="0/${PV}" |
48 |
+KEYWORDS="~amd64 ~ppc ~ppc64 ~sparc ~x86 ~amd64-linux ~x86-linux ~ppc-macos ~x64-macos ~x86-macos" |
49 |
+IUSE="opengl nls doc examples gdbm +gmp ssl +unicode pcre" |
50 |
+ |
51 |
+CDEPEND="sys-libs/readline:0= |
52 |
+ dev-libs/libffi |
53 |
+ net-libs/libnsl:0= |
54 |
+ opengl? ( media-libs/freeglut ) |
55 |
+ nls? ( sys-devel/gettext ) |
56 |
+ unicode? ( >=dev-libs/icu-2.6:= ) |
57 |
+ gdbm? ( >=sys-libs/gdbm-1.8.3-r1 ) |
58 |
+ gmp? ( >=dev-libs/gmp-4.1.4:0= ) |
59 |
+ ssl? ( dev-libs/openssl:0= ) |
60 |
+ pcre? ( dev-libs/libpcre ) |
61 |
+" |
62 |
+RDEPEND="${CDEPEND} |
63 |
+ doc? ( dev-perl/JSON )" |
64 |
+DEPEND="${CDEPEND}" |
65 |
+BDEPEND="dev-lang/perl[doc?] |
66 |
+ ${RDEPEND}" |
67 |
+ |
68 |
+src_configure() { |
69 |
+ myconf="--disable-rpath" |
70 |
+ use unicode || myconf+=" --without-icu" |
71 |
+ use ssl || myconf+=" --without-crypto" |
72 |
+ use gdbm || myconf+=" --without-gdbm" |
73 |
+ use nls || myconf+=" --without-gettext" |
74 |
+ use gmp || myconf+=" --without-gmp" |
75 |
+ use opengl || myconf+=" --without-opengl" |
76 |
+ use pcre || myconf+=" --without-pcre" |
77 |
+ |
78 |
+ perl Configure.pl \ |
79 |
+ --ccflags="${CFLAGS}" \ |
80 |
+ --linkflags="${LDFLAGS}" \ |
81 |
+ --prefix="${EPREFIX}"/usr \ |
82 |
+ --libdir="${EPREFIX}"/usr/$(get_libdir) \ |
83 |
+ --mandir="${EPREFIX}"/usr/share/man \ |
84 |
+ --sysconfdir="${EPREFIX}"/etc \ |
85 |
+ --sharedstatedir="${EPREFIX}"/var/lib/parrot \ |
86 |
+ $myconf || die |
87 |
+} |
88 |
+ |
89 |
+src_compile() { |
90 |
+ export LD_LIBRARY_PATH=${LD_LIBRARY_PATH:+$LD_LIBRARY_PATH:}"${S}"/blib/lib |
91 |
+ # occasionally dies in parallel make |
92 |
+ emake -j1 |
93 |
+ if use doc ; then |
94 |
+ emake -j1 html |
95 |
+ fi |
96 |
+} |
97 |
+ |
98 |
+src_test() { |
99 |
+ emake -j1 test |
100 |
+} |
101 |
+ |
102 |
+src_install() { |
103 |
+ emake -j1 install-dev DESTDIR="${D}" DOC_DIR="${EPREFIX}/usr/share/doc/${PF}" |
104 |
+ dosym parrot-ops2c /usr/bin/ops2c |
105 |
+ rm -vfr "${ED}/usr/share/doc/${PF}/parrot" || die "Unable to prune excess docs" |
106 |
+ DOCS=( |
107 |
+ CREDITS |
108 |
+ ChangeLog |
109 |
+ DONORS.pod |
110 |
+ PBC_COMPAT |
111 |
+ PLATFORMS |
112 |
+ README.pod |
113 |
+ RESPONSIBLE_PARTIES |
114 |
+ TODO |
115 |
+ ) |
116 |
+ use doc && DOCS+=( editor ) |
117 |
+ use examples && DOCS+=( examples ) |
118 |
+ use doc && HTML_DOCS=( |
119 |
+ docs/html/developer.html |
120 |
+ docs/html/DONORS.pod.html |
121 |
+ docs/html/index.html |
122 |
+ docs/html/ops.html |
123 |
+ docs/html/parrotbug.html |
124 |
+ docs/html/pdds.html |
125 |
+ docs/html/pmc.html |
126 |
+ docs/html/tools.html |
127 |
+ docs/html/docs |
128 |
+ docs/html/src |
129 |
+ docs/html/tools |
130 |
+ ) |
131 |
+ einstalldocs |
132 |
+} |