1 |
commit: c233d549a7c2cbb4e0453ac2c1ebbce2ef5d5b76 |
2 |
Author: Aaron Bauman <bman <AT> gentoo <DOT> org> |
3 |
AuthorDate: Wed Dec 2 00:22:04 2020 +0000 |
4 |
Commit: Aaron Bauman <bman <AT> gentoo <DOT> org> |
5 |
CommitDate: Wed Dec 2 00:31:52 2020 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=c233d549 |
7 |
|
8 |
dev-lang/fpc: drop old |
9 |
|
10 |
Signed-off-by: Aaron Bauman <bman <AT> gentoo.org> |
11 |
|
12 |
dev-lang/fpc/Manifest | 20 ----- |
13 |
dev-lang/fpc/fpc-2.6.4.ebuild | 174 --------------------------------------- |
14 |
dev-lang/fpc/fpc-3.0.0.ebuild | 161 ------------------------------------ |
15 |
dev-lang/fpc/fpc-3.0.2-r1.ebuild | 165 ------------------------------------- |
16 |
dev-lang/fpc/fpc-3.0.2.ebuild | 161 ------------------------------------ |
17 |
5 files changed, 681 deletions(-) |
18 |
|
19 |
diff --git a/dev-lang/fpc/Manifest b/dev-lang/fpc/Manifest |
20 |
index 8bc7f1f81d4..e31c7ab20f9 100644 |
21 |
--- a/dev-lang/fpc/Manifest |
22 |
+++ b/dev-lang/fpc/Manifest |
23 |
@@ -1,25 +1,5 @@ |
24 |
-DIST fpc-2.6.2.sparc-linux.tar 33843200 BLAKE2B 1ed51f70e940da9151b2c3fa072a61469b36356fcf3f200a787c44ff468074ad25596afcc3864537f9d31b68827ff7d6d6888715421a570e0a0d107368a41de5 SHA512 9f6ba30680bd51ccb6b627935ce2cc10dfa8671f621d5ef7d7e047b036c48934829e165c3f9bbac61bbccda8b679ee132fc26e41c4f9b66cf30966481eb81f09 |
25 |
-DIST fpc-2.6.4-doc-html.tar.gz 4864530 BLAKE2B 7b0138336709403aee1647a04561e797771eb43a0633a0e23d15feeabd7848891443d550c43bb26a146d421e4bc1a8e095df628b0bade5d065caa03705d00e7f SHA512 c76b15c3c9c47d687bb4760753f605a169c7e76b8b8478dc4e557d0a172f9e7ce7abb24fc1512f7eaa305807a1f4cb0a1305bb02e983f932b02aa9683026e54d |
26 |
-DIST fpc-2.6.4-fpctoc.htx.bz2 125626 BLAKE2B dca08aa9e0bf0cc62a5966eb886057afcb38e3b0174f277a2e30fe41f8c4aca350dc8b35aa0341d6ce6ed50f9db02b3d91778095941d9e13f52f6617a38d486d SHA512 12fdc2755adfabbda74257b058e00072e5e11925b8e62cf7959b2acab90b3e226b8f51544a127f88fc3cd473ba9794e6c9da4e73c04ced2a0d41994b520cd33d |
27 |
-DIST fpc-2.6.4.arm-linux.tar 38440960 BLAKE2B 07695cff655e25087654ec1b2e556d43ea2b8ebe262954bef26f11a2d1e6f40469bbaa08c82209279eef4e9807441d58aa6211bcec9248a5070657158bab67a0 SHA512 3a11ebed39f37021201cac8a7e435d7ef3b1110d6893de7faf33651ff9b5a9aa13b6b529b0011132850386048483a55754ed8b1dba7de2e7ba9b2e881e7f0203 |
28 |
-DIST fpc-2.6.4.i386-linux.tar 47718400 BLAKE2B 005014a798457bc4f4f1b6035e36a907ee43dec5949e537e919600806fce0927ad1ec53b8ee77eb66f3c6e089a24896af9b3a1d4ff35fe6449d1f3f313ce9506 SHA512 2c1c33c80553d8a331f4fb35e1b136ab195de9fa03ab566b218a265a64cc75447a697a34472fa9cceeedf1e3acd664fada2cd36d60b319ea43eed7e1f9e57615 |
29 |
-DIST fpc-2.6.4.powerpc-linux.tar 48220160 BLAKE2B 1695c5267bef715994e6dcb14f085d49f83e9ae2976f4d5763df4a8c45bb24fa5ca142841521ee9af1dd7a1b38c7bcb3d1fb3b35bb4c800f5e63878d184bbc36 SHA512 a78b416a6dd59a10ad50c3549956f15fae5962b64d43be1f1d605befd035732cf860146970dcb410080f9ceb2af1a4f798434fceb11be550cb87d41c72be1810 |
30 |
-DIST fpc-2.6.4.powerpc64-linux.tar 53975040 BLAKE2B 2cbbe4756833c66f6889198497356c124b06f6ef89158bef22253d1465cb70356efcac8b35d0ad38c30c14a831efc36e15d01bb653dfc6d455fe0bd19546aa3f SHA512 0e978f68e339f12e2c53c8641c4f0918604b6b970949159dd20c49d65dabb5253d338d180da144eea3c6102a0110c401d03efbd634885220a320fce5fc686b16 |
31 |
-DIST fpc-2.6.4.source.tar.gz 29904088 BLAKE2B c126a76ea656a776a94237803db27a2319b0d93309175465ee2b4a06e4271b83a2079b7864ff642fb150fe8f57f4073034bf863f51c9f3512bbbab3d4e1f1d7d SHA512 653968786b40c69c3703f67cddfe7c501686cc8b3524a045498c247dc36b66a6619e9cdb5bb5ca002fb700ddc0b653f2a4298e92527df46fc09c8a69e8e9c3a5 |
32 |
-DIST fpc-2.6.4.x86_64-linux.tar 50350080 BLAKE2B b678cdd5d89c5f18eee1aaeba7e1d2285f70c9bd97ca9cdcce96302016f40bbc32699bf6bf8d22cab01c6ebfa3714ed7cbb9662fed4eccbd4cbd39d6a8d8fdb6 SHA512 3a993d1f978353a1d68d8ce2cd62748a875b0d0589ed8daf71ebba545b51879b09173e26245e02ac327b5d64932153a7695975c02f3f266642b4ef68e8ff48dc |
33 |
-DIST fpc-3.0.0-doc-html.tar.gz 5253600 BLAKE2B e7128f5475ac57e82dbd1873ca3978572623dc1d674c05f0c9255e903f77f9cadb0cf1e56d7c4d89cdcf84786fef9c28b6c0dc143950c7a67cc3e21709087c09 SHA512 8a6fb405330eb5d4faa6bc892c7cd8b757b2e7b437e3ce19d85d5b98f702df936e1111e0ba9aac24099d20f6366a3bc8c674e087adbd463e62c2b5c615136486 |
34 |
-DIST fpc-3.0.0.i386-linux.tar 44892160 BLAKE2B 49329eab8765e934c5e0925e533e5bca2f942f179050f18ae06169303ee0284f0b3c72d45fd090290f52c31390865c5dc5974b06f74ffe978fec57ba6247294d SHA512 6d409aaa3827018f27813d7965f2d820e36b725ad8ec3257b89688b0bbf722b41e44ab99495050422b91db71323a081bd60c68f3919d04f17b1922264ec10e13 |
35 |
-DIST fpc-3.0.0.source.tar.gz 38311370 BLAKE2B 77a09431074c9df64ca2de3192966a22654a5d5f344a96351889af75951d1d6f8558dbd8642951ea25dbccf7ef74e320adde3ad5af2d9a5c6e64af30d49b3d83 SHA512 18b91a10320b0c52d0486aa241dbfeb5777eebe040f393f9b3661e8ab27a338b5a8d84c9461d40c6d11b362af2deb014f7c3fc273fc11fee1fc9badf19e18b88 |
36 |
-DIST fpc-3.0.0.x86_64-linux.tar 46571520 BLAKE2B 12e82ac9aebc2ecca1097c6d32baf3108e00a6fa6fc6297220a878d6523086731bb6739c2858114b3352001acb91147550cdb94f35fd6df0def30097fe9a3d7a SHA512 26502cf1dfd2bb83fe860e41cb064ccc5b971d112bf05f95e92089ea71bf0e3aafe659ef4cfc4967dd62271b5ecd3468fedf63dc351944b9e8cb52d662d4a3bb |
37 |
-DIST fpc-3.0.2-doc-html.tar.gz 5534720 BLAKE2B 0d0dfcd1486dd3627242f008face430d80d74db326b0e67f0876a561be3736092ca4397812c8d382a03a0f7e7b4b77abbcdb5ccde25831bfeda36380f6ad5ff4 SHA512 1334e0bd5fbcc5d06513c9f9b1cd99b9a79782cca6224761d18ea314ba88da79517fac46c7135316f00bbaefd779080406f1b9e6c33ffb1e7b228f0c11618669 |
38 |
-DIST fpc-3.0.2.i386-linux.tar 55019520 BLAKE2B b15c99de6b5341d2e41b0ca2644c67808845c0fcaba6e4b3e2efe8d3f8975268491fa4339d4b2aa244e9c71809860c44dad4a6a5609953cb0182144e5648b28e SHA512 adeba89838eceec899edf54a7655a57551319c59eda9f437aa0b6a76bcce1d3cce691a69f40a9fa57ad5c9064abf514c07b879cf40e87cf55c6e10768deb1b7d |
39 |
-DIST fpc-3.0.2.source.tar.gz 39841597 BLAKE2B 0c5b51051e478a03edd689a74d759752d11664706e7c117cee68919758ba0bc074b0c288bcd6ba66bfd5895d1e72f2f0c03df3df600d02c1a3b66fc79b58070a SHA512 8b2540af910c31c96c4bf6bc546f7824b2acd9509fea76b5884370d8ebecd836c167a6ef98fac46b16278027cc15aa6a9f63fb72919e3a103408dc16416e43ae |
40 |
-DIST fpc-3.0.2.x86_64-linux.tar 57190400 BLAKE2B 2d38ad274b51efaf8d07431607c0d4184af6d76628771535c16f9466f1d5619dbce1a6ddc5fb3249c7c2fa7b314435d111c3397a4759c094d51438b0e33c7d88 SHA512 fac103f3bf7fad5af9a435831f456c5dd7b546729f56c4b51b2a6dedceea27b331edf48024b4ec7993e50432332e8404ae63d64913d793e787756413c8d95417 |
41 |
DIST fpc-3.0.4-doc-html.tar.gz 5658315 BLAKE2B 49f9e6f3848ad1aaad8b1621ffd5d2026590b3eed515b9bebe09c489cdf2d7170fcf7413794daebf3465190f5588317325b81d9723d824ab49c81db796f2f48f SHA512 1ebc8c5c5f213568dd24d50667c7939e00c33796c131db174ee93a4dc36122383e7d803cd280896c603eccfadc5bc3474b1831fa7f3e457a58fb3a045b8c33b1 |
42 |
DIST fpc-3.0.4.i386-linux.tar 54691840 BLAKE2B c0951c85a3916c29e8e7391408da09abd86898a42159bfd7e637410ecf3e3a3f266a33edb5eb5ad458be92cf1fc7741eb249a512fe817a73a13207e216e0c0d2 SHA512 eee7528a69d5c745981efc90f571542047a5e6b4f1b391ad5341460035da5feffdfc4c38229134d23513239ccb33dcbc95354559e45746f1f6665541c60d0ca7 |
43 |
DIST fpc-3.0.4.source.tar.gz 40347617 BLAKE2B 0764c92cc379d6e70a3f33368d96244ea0203b3395a5dbcadebe6ef51b508cbc7c112f9bc7bce69ae6dae1fde03bc9e45a1a8ad70ca154cc4dd51bc93cab82f9 SHA512 fc64fd94c39f220bd7531126d6281fa2141aed61c218595a7906a025660b46629a305ff7eb023f5e1359eafdec2dba69aa5405f1bbc3c1182414968689cbb52e |
44 |
DIST fpc-3.0.4.x86_64-linux.tar 56842240 BLAKE2B fda488466f409d4f50501ad17edcce2740f0a7e60ac86bbfec235ccc27c619d62d2aab01aa7878ba3e174c35fd46aab98e43eda4528e98fdf3e098330eea9b26 SHA512 085110d0fade11c4e6e79c002522080eb070cebb8ebbed48ca35e3a2dc025df678516e36c7cba5f951e20c0da57dd261d673dda6839ecdf5d88aa8dfe15a56e5 |
45 |
-DIST fpcbuild-2.6.4.tar.gz 55604643 BLAKE2B 5aa9aca60c98c68fd629479fb7e13cd16f3a080f67a2687fa81e7d3daee958f41c6935fec45568dcd9fc03317bc94e99867b9c9cdac9d80e8c25386f08b03a55 SHA512 7c48fb48a3742ffe533a8a172758071c0a1129ffac09231e6969aa1d31bac346dc764598b6ae78dc9d25585a788f6ed4f2b4c39502774d4d3620f09185b807de |
46 |
-DIST fpcbuild-3.0.0.tar.gz 66934428 BLAKE2B f73e224ccd6229bc4872df09cf776443f262006a73d78151c4ac352d3f1f011885a4b82bceaf64d90ff901f425bfad94fa40f6a1da1a9bd298632ff5acffe7fc SHA512 d010cdc2dd2d4c6efe67cf005d0babb00c2a8ae70942c8b838bb690153ad72e52c0d7198eded7bbde8c77e64d28b2d7f5a220fdcd6117e5991cd11a24369d1f1 |
47 |
-DIST fpcbuild-3.0.2.tar.gz 68407379 BLAKE2B 7cc4ed1e629ae4d078aca9589ab7c8b600856818b92391045601b32c9ab8fc9017ec4715b5bcfb059948337f6fc96447ecef00ba8fabbe8eb656ef9393fcc3b7 SHA512 dfa4865d8166b7903914ac101e48bae9761671a77e37cbfd54c2ee8eb6b2ba0e5f3ac4b55867a2ead79499dbae68cc785db531385c5b77d533945c644a2f6fe6 |
48 |
DIST fpcbuild-3.0.4.tar.gz 68908523 BLAKE2B b5c3936cf0b803aa2cc71f9c25ded470f207c540a1691cf3c2a9876c9e4eefd5c04f45b9f1f3ca17917b14ba4a90e0f16cc890b27024ff225d9d6bb25649862b SHA512 eedfeb4d25b3f4cb30ae9c8f30e0fec2405ef806fa565933cef7904d512f781730e3f023aea2f908c21250e3ced4f74fa780abad77b560728a88cedf591505b6 |
49 |
|
50 |
diff --git a/dev-lang/fpc/fpc-2.6.4.ebuild b/dev-lang/fpc/fpc-2.6.4.ebuild |
51 |
deleted file mode 100644 |
52 |
index c257c55db1d..00000000000 |
53 |
--- a/dev-lang/fpc/fpc-2.6.4.ebuild |
54 |
+++ /dev/null |
55 |
@@ -1,174 +0,0 @@ |
56 |
-# Copyright 1999-2017 Gentoo Foundation |
57 |
-# Distributed under the terms of the GNU General Public License v2 |
58 |
- |
59 |
-EAPI=5 |
60 |
- |
61 |
-inherit toolchain-funcs |
62 |
- |
63 |
-HOMEPAGE="https://www.freepascal.org/" |
64 |
-DESCRIPTION="Free Pascal Compiler" |
65 |
-SRC_URI="mirror://sourceforge/freepascal/fpcbuild-${PV}.tar.gz |
66 |
- mirror://sourceforge/freepascal/fpc-${PV}.source.tar.gz |
67 |
- amd64? ( mirror://sourceforge/freepascal/${P}.x86_64-linux.tar ) |
68 |
- arm? ( mirror://sourceforge/freepascal/${P}.arm-linux.tar ) |
69 |
- ppc? ( mirror://sourceforge/freepascal/${P}.powerpc-linux.tar ) |
70 |
- ppc64? ( mirror://sourceforge/freepascal/${P}.powerpc64-linux.tar ) |
71 |
- sparc? ( mirror://sourceforge/freepascal/${PN}-2.6.2.sparc-linux.tar ) |
72 |
- x86? ( mirror://sourceforge/freepascal/${P}.i386-linux.tar ) |
73 |
- doc? ( mirror://sourceforge/freepascal/Documentation/${PV}/doc-html.tar.gz -> ${P}-doc-html.tar.gz |
74 |
- https://dev.gentoo.org/~radhermit/distfiles/${P}-fpctoc.htx.bz2 )" |
75 |
- |
76 |
-SLOT="0" |
77 |
-LICENSE="GPL-2 LGPL-2.1-with-linking-exception" |
78 |
-KEYWORDS="amd64 ~arm x86" |
79 |
-IUSE="doc ide source" |
80 |
- |
81 |
-RDEPEND="ide? ( !dev-lang/fpc-ide )" |
82 |
- |
83 |
-RESTRICT="strip" #269221 |
84 |
- |
85 |
-S=${WORKDIR}/fpcbuild-${PV}/fpcsrc |
86 |
- |
87 |
-pkg_pretend() { |
88 |
- if [[ ${MERGE_TYPE} != binary ]]; then |
89 |
- # Bug 475210 |
90 |
- if $(tc-getLD) --version | grep -q "GNU gold"; then |
91 |
- eerror "fpc does not function correctly when built with the gold linker." |
92 |
- eerror "Please select the bfd linker with binutils-config." |
93 |
- die "GNU gold detected" |
94 |
- fi |
95 |
- fi |
96 |
-} |
97 |
- |
98 |
-src_unpack() { |
99 |
- case ${ARCH} in |
100 |
- amd64) FPC_ARCH="x86_64" PV_BIN=${PV} ;; |
101 |
- arm) FPC_ARCH="arm" PV_BIN=${PV} ;; |
102 |
- ppc) FPC_ARCH="powerpc" PV_BIN=${PV} ;; |
103 |
- ppc64) FPC_ARCH="powerpc64" PV_BIN=${PV} ;; |
104 |
- sparc) FPC_ARCH="sparc" PV_BIN=2.6.2 ;; |
105 |
- x86) FPC_ARCH="i386" PV_BIN=${PV} ;; |
106 |
- *) die "This ebuild doesn't support ${ARCH}." ;; |
107 |
- esac |
108 |
- |
109 |
- unpack ${A} |
110 |
- |
111 |
- tar -xf ${PN}-${PV_BIN}.${FPC_ARCH}-linux/binary.${FPC_ARCH}-linux.tar || die "Unpacking binary.${FPC_ARCH}-linux.tar failed!" |
112 |
- tar -xzf base.${FPC_ARCH}-linux.tar.gz || die "Unpacking base.${FPC_ARCH}-linux.tar.gz failed!" |
113 |
-} |
114 |
- |
115 |
-src_prepare() { |
116 |
- find "${WORKDIR}" -name Makefile -exec sed -i -e 's/ -Xs / /g' {} + || die |
117 |
- |
118 |
- # let the pkg manager compress man files |
119 |
- sed -i '/find man.* gzip /d' "${WORKDIR}"/fpcbuild-${PV}/install/man/Makefile || die |
120 |
-} |
121 |
- |
122 |
-set_pp() { |
123 |
- case ${ARCH} in |
124 |
- amd64) FPC_ARCH="x64" ;; |
125 |
- arm) FPC_ARCH="arm" ;; |
126 |
- ppc) FPC_ARCH="ppc" ;; |
127 |
- ppc64) FPC_ARCH="ppc64" ;; |
128 |
- sparc) FPC_ARCH="sparc" ;; |
129 |
- x86) FPC_ARCH="386" ;; |
130 |
- *) die "This ebuild doesn't support ${ARCH}." ;; |
131 |
- esac |
132 |
- |
133 |
- case ${1} in |
134 |
- bootstrap) pp="${WORKDIR}"/lib/fpc/${PV_BIN}/ppc${FPC_ARCH} ;; |
135 |
- new) pp="${S}"/compiler/ppc${FPC_ARCH} ;; |
136 |
- *) die "set_pp: unknown argument: ${1}" ;; |
137 |
- esac |
138 |
-} |
139 |
- |
140 |
-src_compile() { |
141 |
- local pp |
142 |
- |
143 |
- # Using the bootstrap compiler. |
144 |
- set_pp bootstrap |
145 |
- |
146 |
- emake -j1 PP="${pp}" compiler_cycle AS="$(tc-getAS)" |
147 |
- |
148 |
- # Save new compiler from cleaning... |
149 |
- cp "${S}"/compiler/ppc${FPC_ARCH} "${S}"/ppc${FPC_ARCH}.new || die |
150 |
- |
151 |
- # ...rebuild with current version... |
152 |
- emake -j1 PP="${S}"/ppc${FPC_ARCH}.new AS="$(tc-getAS)" compiler_cycle |
153 |
- |
154 |
- # ..and clean up afterwards |
155 |
- rm "${S}"/ppc${FPC_ARCH}.new || die |
156 |
- |
157 |
- # Using the new compiler. |
158 |
- set_pp new |
159 |
- |
160 |
- emake -j1 PP="${pp}" AS="$(tc-getAS)" rtl_clean |
161 |
- |
162 |
- emake -j1 PP="${pp}" AS="$(tc-getAS)" rtl packages_all utils |
163 |
- |
164 |
- if use ide ; then |
165 |
- cd "${S}"/ide || die |
166 |
- emake -j1 PP="${pp}" AS="$(tc-getAS)" |
167 |
- fi |
168 |
-} |
169 |
- |
170 |
-src_install() { |
171 |
- local pp |
172 |
- set_pp new |
173 |
- |
174 |
- set -- PP="${pp}" FPCMAKE="${S}/utils/fpcm/fpcmake" \ |
175 |
- INSTALL_PREFIX="${D}"/usr \ |
176 |
- INSTALL_DOCDIR="${D}"/usr/share/doc/${PF} \ |
177 |
- INSTALL_MANDIR="${D}"/usr/share/man \ |
178 |
- INSTALL_SOURCEDIR="${D}"/usr/lib/fpc/${PV}/source |
179 |
- |
180 |
- emake -j1 "$@" compiler_install rtl_install packages_install utils_install |
181 |
- |
182 |
- dosym ../lib/fpc/${PV}/ppc${FPC_ARCH} /usr/bin/ppc${FPC_ARCH} |
183 |
- |
184 |
- cd "${S}"/../install/doc || die |
185 |
- emake -j1 "$@" installdoc |
186 |
- |
187 |
- cd "${S}"/../install/man || die |
188 |
- emake -j1 "$@" installman |
189 |
- |
190 |
- if use doc ; then |
191 |
- cd "${S}"/../../doc || die |
192 |
- dodoc -r * |
193 |
- newdoc "${WORKDIR}"/${P}-fpctoc.htx fpctoc.htx |
194 |
- docompress -x /usr/share/doc/${PF}/fpctoc.htx |
195 |
- fi |
196 |
- |
197 |
- if use ide ; then |
198 |
- cd "${S}"/ide |
199 |
- emake -j1 "$@" install |
200 |
- fi |
201 |
- |
202 |
- if use source ; then |
203 |
- cd "${S}" || die |
204 |
- shift |
205 |
- emake -j1 PP="${D}"/usr/bin/ppc${FPC_ARCH} "$@" sourceinstall |
206 |
- find "${D}"/usr/lib/fpc/${PV}/source -name '*.o' -exec rm {} \; |
207 |
- fi |
208 |
- |
209 |
- "${D}"/usr/lib/fpc/${PV}/samplecfg "${D}"/usr/lib/fpc/${PV} "${D}"/etc || die |
210 |
- |
211 |
- sed -i "s:${D}::g" "${D}"/etc/fpc.cfg || die |
212 |
- |
213 |
- if use ide ; then |
214 |
- sed -e "s:${D}::g" \ |
215 |
- -i "${D}"/etc/fppkg.cfg \ |
216 |
- -i "${D}"/etc/fppkg/* \ |
217 |
- -i "${D}"/usr/lib/fpc/${PV}/ide/text/fp*.cfg \ |
218 |
- || die |
219 |
- fi |
220 |
- |
221 |
- rm -r "${D}"/usr/lib/fpc/lexyacc || die |
222 |
-} |
223 |
- |
224 |
-pkg_postinst() { |
225 |
- if [[ -z ${REPLACING_VERSIONS} ]] && use ide; then |
226 |
- einfo "To read the documentation in the fpc IDE, enable the doc USE flag" |
227 |
- einfo "and add /usr/share/doc/${PF}/fpctoc.htx to the Help Files list." |
228 |
- fi |
229 |
-} |
230 |
|
231 |
diff --git a/dev-lang/fpc/fpc-3.0.0.ebuild b/dev-lang/fpc/fpc-3.0.0.ebuild |
232 |
deleted file mode 100644 |
233 |
index 8e703c097ba..00000000000 |
234 |
--- a/dev-lang/fpc/fpc-3.0.0.ebuild |
235 |
+++ /dev/null |
236 |
@@ -1,161 +0,0 @@ |
237 |
-# Copyright 1999-2017 Gentoo Foundation |
238 |
-# Distributed under the terms of the GNU General Public License v2 |
239 |
- |
240 |
-EAPI=5 |
241 |
- |
242 |
-inherit toolchain-funcs |
243 |
- |
244 |
-HOMEPAGE="https://www.freepascal.org/" |
245 |
-DESCRIPTION="Free Pascal Compiler" |
246 |
-SRC_URI="mirror://sourceforge/freepascal/fpcbuild-${PV}.tar.gz |
247 |
- mirror://sourceforge/freepascal/fpc-${PV}.source.tar.gz |
248 |
- amd64? ( mirror://sourceforge/freepascal/${P}.x86_64-linux.tar ) |
249 |
- x86? ( mirror://sourceforge/freepascal/${P}.i386-linux.tar ) |
250 |
- doc? ( mirror://sourceforge/freepascal/Documentation/${PV}/doc-html.tar.gz -> ${P}-doc-html.tar.gz )" |
251 |
- |
252 |
-SLOT="0" |
253 |
-LICENSE="GPL-2 LGPL-2.1-with-linking-exception" |
254 |
-KEYWORDS="~amd64 ~x86" |
255 |
-IUSE="doc ide source" |
256 |
- |
257 |
-RDEPEND="ide? ( !dev-lang/fpc-ide )" |
258 |
- |
259 |
-RESTRICT="strip" #269221 |
260 |
- |
261 |
-S=${WORKDIR}/fpcbuild-${PV}/fpcsrc |
262 |
- |
263 |
-pkg_pretend() { |
264 |
- if [[ ${MERGE_TYPE} != binary ]]; then |
265 |
- # Bug 475210 |
266 |
- if $(tc-getLD) --version | grep -q "GNU gold"; then |
267 |
- eerror "fpc does not function correctly when built with the gold linker." |
268 |
- eerror "Please select the bfd linker with binutils-config." |
269 |
- die "GNU gold detected" |
270 |
- fi |
271 |
- fi |
272 |
-} |
273 |
- |
274 |
-src_unpack() { |
275 |
- case ${ARCH} in |
276 |
- amd64) FPC_ARCH="x86_64" PV_BIN=${PV} ;; |
277 |
- x86) FPC_ARCH="i386" PV_BIN=${PV} ;; |
278 |
- *) die "This ebuild doesn't support ${ARCH}." ;; |
279 |
- esac |
280 |
- |
281 |
- unpack ${A} |
282 |
- |
283 |
- tar -xf ${PN}-${PV_BIN}.${FPC_ARCH}-linux/binary.${FPC_ARCH}-linux.tar || die "Unpacking binary.${FPC_ARCH}-linux.tar failed!" |
284 |
- tar -xzf base.${FPC_ARCH}-linux.tar.gz || die "Unpacking base.${FPC_ARCH}-linux.tar.gz failed!" |
285 |
-} |
286 |
- |
287 |
-src_prepare() { |
288 |
- find "${WORKDIR}" -name Makefile -exec sed -i -e 's/ -Xs / /g' {} + || die |
289 |
- |
290 |
- # let the pkg manager compress man files |
291 |
- sed -i '/find man.* gzip /d' "${WORKDIR}"/fpcbuild-${PV}/install/man/Makefile || die |
292 |
-} |
293 |
- |
294 |
-set_pp() { |
295 |
- case ${ARCH} in |
296 |
- amd64) FPC_ARCH="x64" FPC_PARCH="x86_64" ;; |
297 |
- x86) FPC_ARCH="386" FPC_PARCH="i386" ;; |
298 |
- *) die "This ebuild doesn't support ${ARCH}." ;; |
299 |
- esac |
300 |
- |
301 |
- case ${1} in |
302 |
- bootstrap) pp="${WORKDIR}"/lib/fpc/${PV_BIN}/ppc${FPC_ARCH} ;; |
303 |
- new) pp="${S}"/compiler/ppc${FPC_ARCH} ;; |
304 |
- *) die "set_pp: unknown argument: ${1}" ;; |
305 |
- esac |
306 |
-} |
307 |
- |
308 |
-src_compile() { |
309 |
- local pp |
310 |
- |
311 |
- # Using the bootstrap compiler. |
312 |
- set_pp bootstrap |
313 |
- |
314 |
- emake -j1 PP="${pp}" compiler_cycle AS="$(tc-getAS)" |
315 |
- |
316 |
- # Save new compiler from cleaning... |
317 |
- cp "${S}"/compiler/ppc${FPC_ARCH} "${S}"/ppc${FPC_ARCH}.new || die |
318 |
- |
319 |
- # ...rebuild with current version... |
320 |
- emake -j1 PP="${S}"/ppc${FPC_ARCH}.new AS="$(tc-getAS)" compiler_cycle |
321 |
- |
322 |
- # ..and clean up afterwards |
323 |
- rm "${S}"/ppc${FPC_ARCH}.new || die |
324 |
- |
325 |
- # Using the new compiler. |
326 |
- set_pp new |
327 |
- |
328 |
- emake -j1 PP="${pp}" AS="$(tc-getAS)" rtl_clean |
329 |
- |
330 |
- emake -j1 PP="${pp}" AS="$(tc-getAS)" rtl packages_all utils |
331 |
- |
332 |
- if use ide ; then |
333 |
- cd "${S}"/ide || die |
334 |
- emake -j1 PP="${pp}" AS="$(tc-getAS)" |
335 |
- fi |
336 |
-} |
337 |
- |
338 |
-src_install() { |
339 |
- local pp |
340 |
- set_pp new |
341 |
- |
342 |
- #fpcbuild-3.0.0/utils/fpcm/fpcmake |
343 |
- #${WORKDIR}/${PN}build-${PV}/utils/fpcm/fpcmake" |
344 |
- #fpcbuild-3.0.0/fpcsrc/utils/fpcm/bin/x86_64-linux/fpcmake |
345 |
- set -- PP="${pp}" FPCMAKE="${S}/utils/fpcm/bin/${FPC_PARCH}-linux/fpcmake" \ |
346 |
- INSTALL_PREFIX="${D}"/usr \ |
347 |
- INSTALL_DOCDIR="${D}"/usr/share/doc/${PF} \ |
348 |
- INSTALL_MANDIR="${D}"/usr/share/man \ |
349 |
- INSTALL_SOURCEDIR="${D}"/usr/lib/fpc/${PV}/source |
350 |
- |
351 |
- emake -j1 "$@" compiler_install rtl_install packages_install utils_install |
352 |
- |
353 |
- dosym ../lib/fpc/${PV}/ppc${FPC_ARCH} /usr/bin/ppc${FPC_ARCH} |
354 |
- |
355 |
- cd "${S}"/../install/doc || die |
356 |
- emake -j1 "$@" installdoc |
357 |
- |
358 |
- cd "${S}"/../install/man || die |
359 |
- emake -j1 "$@" installman |
360 |
- |
361 |
- if use doc ; then |
362 |
- cd "${S}"/../../doc || die |
363 |
- dodoc -r * |
364 |
- fi |
365 |
- |
366 |
- if use ide ; then |
367 |
- cd "${S}"/ide |
368 |
- emake -j1 "$@" install |
369 |
- fi |
370 |
- |
371 |
- if use source ; then |
372 |
- cd "${S}" || die |
373 |
- shift |
374 |
- emake -j1 PP="${D}"/usr/bin/ppc${FPC_ARCH} "$@" sourceinstall |
375 |
- find "${D}"/usr/lib/fpc/${PV}/source -name '*.o' -exec rm {} \; |
376 |
- fi |
377 |
- |
378 |
- "${D}"/usr/lib/fpc/${PV}/samplecfg "${D}"/usr/lib/fpc/${PV} "${D}"/etc || die |
379 |
- |
380 |
- sed -i "s:${D}::g" "${D}"/etc/fpc.cfg || die |
381 |
- |
382 |
- if use ide ; then |
383 |
- sed -e "s:${D}::g" \ |
384 |
- -i "${D}"/etc/fppkg.cfg \ |
385 |
- -i "${D}"/etc/fppkg/* \ |
386 |
- -i "${D}"/usr/lib/fpc/${PV}/ide/text/fp*.cfg \ |
387 |
- || die |
388 |
- fi |
389 |
- |
390 |
- rm -r "${D}"/usr/lib/fpc/lexyacc || die |
391 |
-} |
392 |
- |
393 |
-pkg_postinst() { |
394 |
- if [[ -z ${REPLACING_VERSIONS} ]] && use ide; then |
395 |
- einfo "To read the documentation in the fpc IDE, enable the doc USE flag" |
396 |
- fi |
397 |
-} |
398 |
|
399 |
diff --git a/dev-lang/fpc/fpc-3.0.2-r1.ebuild b/dev-lang/fpc/fpc-3.0.2-r1.ebuild |
400 |
deleted file mode 100644 |
401 |
index 38a17395ed7..00000000000 |
402 |
--- a/dev-lang/fpc/fpc-3.0.2-r1.ebuild |
403 |
+++ /dev/null |
404 |
@@ -1,165 +0,0 @@ |
405 |
-# Copyright 1999-2017 Gentoo Foundation |
406 |
-# Distributed under the terms of the GNU General Public License v2 |
407 |
- |
408 |
-EAPI=5 |
409 |
- |
410 |
-inherit prefix toolchain-funcs |
411 |
- |
412 |
-HOMEPAGE="https://www.freepascal.org/" |
413 |
-DESCRIPTION="Free Pascal Compiler" |
414 |
-SRC_URI="mirror://sourceforge/freepascal/fpcbuild-${PV}.tar.gz |
415 |
- mirror://sourceforge/freepascal/fpc-${PV}.source.tar.gz |
416 |
- amd64? ( mirror://sourceforge/freepascal/${P}.x86_64-linux.tar ) |
417 |
- x86? ( mirror://sourceforge/freepascal/${P}.i386-linux.tar ) |
418 |
- doc? ( mirror://sourceforge/freepascal/Documentation/${PV}/doc-html.tar.gz -> ${P}-doc-html.tar.gz )" |
419 |
- |
420 |
-SLOT="0" |
421 |
-LICENSE="GPL-2 LGPL-2.1-with-linking-exception" |
422 |
-KEYWORDS="~amd64 ~x86" |
423 |
-IUSE="doc ide source" |
424 |
- |
425 |
-RDEPEND="ide? ( !dev-lang/fpc-ide )" |
426 |
- |
427 |
-RESTRICT="strip" #269221 |
428 |
- |
429 |
-S=${WORKDIR}/fpcbuild-${PV}/fpcsrc |
430 |
- |
431 |
-pkg_pretend() { |
432 |
- if [[ ${MERGE_TYPE} != binary ]]; then |
433 |
- # Bug 475210 |
434 |
- if $(tc-getLD) --version | grep -q "GNU gold"; then |
435 |
- eerror "fpc does not function correctly when built with the gold linker." |
436 |
- eerror "Please select the bfd linker with binutils-config." |
437 |
- die "GNU gold detected" |
438 |
- fi |
439 |
- fi |
440 |
-} |
441 |
- |
442 |
-src_unpack() { |
443 |
- case ${ARCH} in |
444 |
- amd64) FPC_ARCH="x86_64" PV_BIN=${PV} ;; |
445 |
- x86) FPC_ARCH="i386" PV_BIN=${PV} ;; |
446 |
- *) die "This ebuild doesn't support ${ARCH}." ;; |
447 |
- esac |
448 |
- |
449 |
- unpack ${A} |
450 |
- |
451 |
- tar -xf ${PN}-${PV_BIN}.${FPC_ARCH}-linux/binary.${FPC_ARCH}-linux.tar || die "Unpacking binary.${FPC_ARCH}-linux.tar failed!" |
452 |
- tar -xzf base.${FPC_ARCH}-linux.tar.gz || die "Unpacking base.${FPC_ARCH}-linux.tar.gz failed!" |
453 |
-} |
454 |
- |
455 |
-src_prepare() { |
456 |
- find "${WORKDIR}" -name Makefile -exec sed -i -e 's/ -Xs / /g' {} + || die |
457 |
- |
458 |
- # let the pkg manager compress man files |
459 |
- sed -i '/find man.* gzip /d' "${WORKDIR}"/fpcbuild-${PV}/install/man/Makefile || die |
460 |
- |
461 |
- # make the compiled binary check for fpc.cfg under the prefixed /etc/ path |
462 |
- hprefixify "${WORKDIR}"/fpcbuild-${PV}/fpcsrc/compiler/options.pas |
463 |
-} |
464 |
- |
465 |
-set_pp() { |
466 |
- case ${ARCH} in |
467 |
- amd64) FPC_ARCH="x64" FPC_PARCH="x86_64" ;; |
468 |
- x86) FPC_ARCH="386" FPC_PARCH="i386" ;; |
469 |
- *) die "This ebuild doesn't support ${ARCH}." ;; |
470 |
- esac |
471 |
- |
472 |
- case ${1} in |
473 |
- bootstrap) pp="${WORKDIR}"/lib/fpc/${PV_BIN}/ppc${FPC_ARCH} ;; |
474 |
- new) pp="${S}"/compiler/ppc${FPC_ARCH} ;; |
475 |
- *) die "set_pp: unknown argument: ${1}" ;; |
476 |
- esac |
477 |
-} |
478 |
- |
479 |
-src_compile() { |
480 |
- local pp |
481 |
- |
482 |
- # Using the bootstrap compiler. |
483 |
- set_pp bootstrap |
484 |
- |
485 |
- emake -j1 PP="${pp}" compiler_cycle AS="$(tc-getAS)" |
486 |
- |
487 |
- # Save new compiler from cleaning... |
488 |
- cp "${S}"/compiler/ppc${FPC_ARCH} "${S}"/ppc${FPC_ARCH}.new || die |
489 |
- |
490 |
- # ...rebuild with current version... |
491 |
- emake -j1 PP="${S}"/ppc${FPC_ARCH}.new AS="$(tc-getAS)" compiler_cycle |
492 |
- |
493 |
- # ..and clean up afterwards |
494 |
- rm "${S}"/ppc${FPC_ARCH}.new || die |
495 |
- |
496 |
- # Using the new compiler. |
497 |
- set_pp new |
498 |
- |
499 |
- emake -j1 PP="${pp}" AS="$(tc-getAS)" rtl_clean |
500 |
- |
501 |
- emake -j1 PP="${pp}" AS="$(tc-getAS)" rtl packages_all utils |
502 |
- |
503 |
- if use ide ; then |
504 |
- cd "${S}"/ide || die |
505 |
- emake -j1 PP="${pp}" AS="$(tc-getAS)" |
506 |
- fi |
507 |
-} |
508 |
- |
509 |
-src_install() { |
510 |
- local pp |
511 |
- set_pp new |
512 |
- |
513 |
- #fpcbuild-3.0.0/utils/fpcm/fpcmake |
514 |
- #${WORKDIR}/${PN}build-${PV}/utils/fpcm/fpcmake" |
515 |
- #fpcbuild-3.0.0/fpcsrc/utils/fpcm/bin/x86_64-linux/fpcmake |
516 |
- set -- PP="${pp}" FPCMAKE="${S}/utils/fpcm/bin/${FPC_PARCH}-linux/fpcmake" \ |
517 |
- INSTALL_PREFIX="${ED}"/usr \ |
518 |
- INSTALL_DOCDIR="${ED}"/usr/share/doc/${PF} \ |
519 |
- INSTALL_MANDIR="${ED}"/usr/share/man \ |
520 |
- INSTALL_SOURCEDIR="${ED}"/usr/lib/fpc/${PV}/source |
521 |
- |
522 |
- emake -j1 "$@" compiler_install rtl_install packages_install utils_install |
523 |
- |
524 |
- dosym ../lib/fpc/${PV}/ppc${FPC_ARCH} /usr/bin/ppc${FPC_ARCH} |
525 |
- |
526 |
- cd "${S}"/../install/doc || die |
527 |
- emake -j1 "$@" installdoc |
528 |
- |
529 |
- cd "${S}"/../install/man || die |
530 |
- emake -j1 "$@" installman |
531 |
- |
532 |
- if use doc ; then |
533 |
- cd "${S}"/../../doc || die |
534 |
- dodoc -r * |
535 |
- fi |
536 |
- |
537 |
- if use ide ; then |
538 |
- cd "${S}"/ide || die |
539 |
- emake -j1 "$@" install |
540 |
- fi |
541 |
- |
542 |
- if use source ; then |
543 |
- cd "${S}" || die |
544 |
- shift |
545 |
- emake -j1 PP="${ED}"/usr/bin/ppc${FPC_ARCH} "$@" sourceinstall |
546 |
- find "${ED}"/usr/lib/fpc/${PV}/source -name '*.o' -exec rm {} \; |
547 |
- fi |
548 |
- |
549 |
- "${ED}"/usr/lib/fpc/${PV}/samplecfg "${ED}"/usr/lib/fpc/${PV} "${ED}"/etc || die |
550 |
- |
551 |
- # set correct (prefixed) path for e.g. unit files |
552 |
- sed -i "s:${ED}:${EPREFIX}:g" "${ED}"/etc/fpc.cfg || die |
553 |
- |
554 |
- if use ide ; then |
555 |
- sed -e "s:${ED}::g" \ |
556 |
- -i "${ED}"/etc/fppkg.cfg \ |
557 |
- -i "${ED}"/etc/fppkg/* \ |
558 |
- -i "${ED}"/usr/lib/fpc/${PV}/ide/text/fp*.cfg \ |
559 |
- || die |
560 |
- fi |
561 |
- |
562 |
- rm -r "${ED}"/usr/lib/fpc/lexyacc || die |
563 |
-} |
564 |
- |
565 |
-pkg_postinst() { |
566 |
- if [[ -z ${REPLACING_VERSIONS} ]] && use ide; then |
567 |
- einfo "To read the documentation in the fpc IDE, enable the doc USE flag" |
568 |
- fi |
569 |
-} |
570 |
|
571 |
diff --git a/dev-lang/fpc/fpc-3.0.2.ebuild b/dev-lang/fpc/fpc-3.0.2.ebuild |
572 |
deleted file mode 100644 |
573 |
index f8ea1b5b8b4..00000000000 |
574 |
--- a/dev-lang/fpc/fpc-3.0.2.ebuild |
575 |
+++ /dev/null |
576 |
@@ -1,161 +0,0 @@ |
577 |
-# Copyright 1999-2017 Gentoo Foundation |
578 |
-# Distributed under the terms of the GNU General Public License v2 |
579 |
- |
580 |
-EAPI=5 |
581 |
- |
582 |
-inherit toolchain-funcs |
583 |
- |
584 |
-HOMEPAGE="https://www.freepascal.org/" |
585 |
-DESCRIPTION="Free Pascal Compiler" |
586 |
-SRC_URI="mirror://sourceforge/freepascal/fpcbuild-${PV}.tar.gz |
587 |
- mirror://sourceforge/freepascal/fpc-${PV}.source.tar.gz |
588 |
- amd64? ( mirror://sourceforge/freepascal/${P}.x86_64-linux.tar ) |
589 |
- x86? ( mirror://sourceforge/freepascal/${P}.i386-linux.tar ) |
590 |
- doc? ( mirror://sourceforge/freepascal/Documentation/${PV}/doc-html.tar.gz -> ${P}-doc-html.tar.gz )" |
591 |
- |
592 |
-SLOT="0" |
593 |
-LICENSE="GPL-2 LGPL-2.1-with-linking-exception" |
594 |
-KEYWORDS="~amd64 ~x86" |
595 |
-IUSE="doc ide source" |
596 |
- |
597 |
-RDEPEND="ide? ( !dev-lang/fpc-ide )" |
598 |
- |
599 |
-RESTRICT="strip" #269221 |
600 |
- |
601 |
-S=${WORKDIR}/fpcbuild-${PV}/fpcsrc |
602 |
- |
603 |
-pkg_pretend() { |
604 |
- if [[ ${MERGE_TYPE} != binary ]]; then |
605 |
- # Bug 475210 |
606 |
- if $(tc-getLD) --version | grep -q "GNU gold"; then |
607 |
- eerror "fpc does not function correctly when built with the gold linker." |
608 |
- eerror "Please select the bfd linker with binutils-config." |
609 |
- die "GNU gold detected" |
610 |
- fi |
611 |
- fi |
612 |
-} |
613 |
- |
614 |
-src_unpack() { |
615 |
- case ${ARCH} in |
616 |
- amd64) FPC_ARCH="x86_64" PV_BIN=${PV} ;; |
617 |
- x86) FPC_ARCH="i386" PV_BIN=${PV} ;; |
618 |
- *) die "This ebuild doesn't support ${ARCH}." ;; |
619 |
- esac |
620 |
- |
621 |
- unpack ${A} |
622 |
- |
623 |
- tar -xf ${PN}-${PV_BIN}.${FPC_ARCH}-linux/binary.${FPC_ARCH}-linux.tar || die "Unpacking binary.${FPC_ARCH}-linux.tar failed!" |
624 |
- tar -xzf base.${FPC_ARCH}-linux.tar.gz || die "Unpacking base.${FPC_ARCH}-linux.tar.gz failed!" |
625 |
-} |
626 |
- |
627 |
-src_prepare() { |
628 |
- find "${WORKDIR}" -name Makefile -exec sed -i -e 's/ -Xs / /g' {} + || die |
629 |
- |
630 |
- # let the pkg manager compress man files |
631 |
- sed -i '/find man.* gzip /d' "${WORKDIR}"/fpcbuild-${PV}/install/man/Makefile || die |
632 |
-} |
633 |
- |
634 |
-set_pp() { |
635 |
- case ${ARCH} in |
636 |
- amd64) FPC_ARCH="x64" FPC_PARCH="x86_64" ;; |
637 |
- x86) FPC_ARCH="386" FPC_PARCH="i386" ;; |
638 |
- *) die "This ebuild doesn't support ${ARCH}." ;; |
639 |
- esac |
640 |
- |
641 |
- case ${1} in |
642 |
- bootstrap) pp="${WORKDIR}"/lib/fpc/${PV_BIN}/ppc${FPC_ARCH} ;; |
643 |
- new) pp="${S}"/compiler/ppc${FPC_ARCH} ;; |
644 |
- *) die "set_pp: unknown argument: ${1}" ;; |
645 |
- esac |
646 |
-} |
647 |
- |
648 |
-src_compile() { |
649 |
- local pp |
650 |
- |
651 |
- # Using the bootstrap compiler. |
652 |
- set_pp bootstrap |
653 |
- |
654 |
- emake -j1 PP="${pp}" compiler_cycle AS="$(tc-getAS)" |
655 |
- |
656 |
- # Save new compiler from cleaning... |
657 |
- cp "${S}"/compiler/ppc${FPC_ARCH} "${S}"/ppc${FPC_ARCH}.new || die |
658 |
- |
659 |
- # ...rebuild with current version... |
660 |
- emake -j1 PP="${S}"/ppc${FPC_ARCH}.new AS="$(tc-getAS)" compiler_cycle |
661 |
- |
662 |
- # ..and clean up afterwards |
663 |
- rm "${S}"/ppc${FPC_ARCH}.new || die |
664 |
- |
665 |
- # Using the new compiler. |
666 |
- set_pp new |
667 |
- |
668 |
- emake -j1 PP="${pp}" AS="$(tc-getAS)" rtl_clean |
669 |
- |
670 |
- emake -j1 PP="${pp}" AS="$(tc-getAS)" rtl packages_all utils |
671 |
- |
672 |
- if use ide ; then |
673 |
- cd "${S}"/ide || die |
674 |
- emake -j1 PP="${pp}" AS="$(tc-getAS)" |
675 |
- fi |
676 |
-} |
677 |
- |
678 |
-src_install() { |
679 |
- local pp |
680 |
- set_pp new |
681 |
- |
682 |
- #fpcbuild-3.0.0/utils/fpcm/fpcmake |
683 |
- #${WORKDIR}/${PN}build-${PV}/utils/fpcm/fpcmake" |
684 |
- #fpcbuild-3.0.0/fpcsrc/utils/fpcm/bin/x86_64-linux/fpcmake |
685 |
- set -- PP="${pp}" FPCMAKE="${S}/utils/fpcm/bin/${FPC_PARCH}-linux/fpcmake" \ |
686 |
- INSTALL_PREFIX="${ED}"/usr \ |
687 |
- INSTALL_DOCDIR="${ED}"/usr/share/doc/${PF} \ |
688 |
- INSTALL_MANDIR="${ED}"/usr/share/man \ |
689 |
- INSTALL_SOURCEDIR="${ED}"/usr/lib/fpc/${PV}/source |
690 |
- |
691 |
- emake -j1 "$@" compiler_install rtl_install packages_install utils_install |
692 |
- |
693 |
- dosym ../lib/fpc/${PV}/ppc${FPC_ARCH} /usr/bin/ppc${FPC_ARCH} |
694 |
- |
695 |
- cd "${S}"/../install/doc || die |
696 |
- emake -j1 "$@" installdoc |
697 |
- |
698 |
- cd "${S}"/../install/man || die |
699 |
- emake -j1 "$@" installman |
700 |
- |
701 |
- if use doc ; then |
702 |
- cd "${S}"/../../doc || die |
703 |
- dodoc -r * |
704 |
- fi |
705 |
- |
706 |
- if use ide ; then |
707 |
- cd "${S}"/ide || die |
708 |
- emake -j1 "$@" install |
709 |
- fi |
710 |
- |
711 |
- if use source ; then |
712 |
- cd "${S}" || die |
713 |
- shift |
714 |
- emake -j1 PP="${ED}"/usr/bin/ppc${FPC_ARCH} "$@" sourceinstall |
715 |
- find "${ED}"/usr/lib/fpc/${PV}/source -name '*.o' -exec rm {} \; |
716 |
- fi |
717 |
- |
718 |
- "${ED}"/usr/lib/fpc/${PV}/samplecfg "${ED}"/usr/lib/fpc/${PV} "${ED}"/etc || die |
719 |
- |
720 |
- sed -i "s:${ED}::g" "${ED}"/etc/fpc.cfg || die |
721 |
- |
722 |
- if use ide ; then |
723 |
- sed -e "s:${ED}::g" \ |
724 |
- -i "${ED}"/etc/fppkg.cfg \ |
725 |
- -i "${ED}"/etc/fppkg/* \ |
726 |
- -i "${ED}"/usr/lib/fpc/${PV}/ide/text/fp*.cfg \ |
727 |
- || die |
728 |
- fi |
729 |
- |
730 |
- rm -r "${ED}"/usr/lib/fpc/lexyacc || die |
731 |
-} |
732 |
- |
733 |
-pkg_postinst() { |
734 |
- if [[ -z ${REPLACING_VERSIONS} ]] && use ide; then |
735 |
- einfo "To read the documentation in the fpc IDE, enable the doc USE flag" |
736 |
- fi |
737 |
-} |