1 |
commit: c01bddeb5c48a993a8e906e9f34f4849458dbd02 |
2 |
Author: neeshy <neeshy <AT> tfwno <DOT> gf> |
3 |
AuthorDate: Tue Jun 2 11:10:22 2020 +0000 |
4 |
Commit: Joonas Niilola <juippis <AT> gentoo <DOT> org> |
5 |
CommitDate: Tue Jun 2 11:13:44 2020 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=c01bddeb |
7 |
|
8 |
dev-util/plan9port: drop old |
9 |
|
10 |
Signed-off-by: Nima Sadeghi <neeshy <AT> tfwno.gf> |
11 |
Signed-off-by: Joonas Niilola <juippis <AT> gentoo.org> |
12 |
|
13 |
dev-util/plan9port/Manifest | 1 - |
14 |
dev-util/plan9port/plan9port-20140306-r4.ebuild | 120 ------------------------ |
15 |
2 files changed, 121 deletions(-) |
16 |
|
17 |
diff --git a/dev-util/plan9port/Manifest b/dev-util/plan9port/Manifest |
18 |
index 60d4aeb16d1..09b8c7cbe5f 100644 |
19 |
--- a/dev-util/plan9port/Manifest |
20 |
+++ b/dev-util/plan9port/Manifest |
21 |
@@ -1,2 +1 @@ |
22 |
DIST plan9port-a6ad39aaaa36b8aadc5c35bfc803afbde32918c0.tar.gz 23445647 BLAKE2B 4cb0f08fc404c5618c4be0d7e5710e6a8a32fbe010d28a879b1f9575118256492a3ed2b9b744c35dbbb6c6deae405c05fd7b6606254fb94fc2b40b3a8d14fa71 SHA512 4d9f6ce66d3eebb311cbbb0ec27c01d99cc0e19c6ac8a1c511ff00070c085a349b637048cd0066240af975e90f527388dbeba58f4591bf7dcaa673ee5564430f |
23 |
-DIST plan9port-e78ed7a67bbaa37dc57dfb37219f505c48755e14.tar.gz 23442851 BLAKE2B 89e2a8dcdf650cc3640ef0ba496f1c22e74831fda2e4a51cf8419c496da5a480a10324eb295369e9192defbd3c6411ea351bba1c6bdec5d72bc4ee397da58114 SHA512 3cb126eb0f8c58c76c4da5aaca6b3956b9cc30b1955c1b9db4727a01a46cae696f01b538a47f6f009e955f6ed8f308b60b6519d4184e10b255636ea32a1e9099 |
24 |
|
25 |
diff --git a/dev-util/plan9port/plan9port-20140306-r4.ebuild b/dev-util/plan9port/plan9port-20140306-r4.ebuild |
26 |
deleted file mode 100644 |
27 |
index 68a51b267f4..00000000000 |
28 |
--- a/dev-util/plan9port/plan9port-20140306-r4.ebuild |
29 |
+++ /dev/null |
30 |
@@ -1,120 +0,0 @@ |
31 |
-# Copyright 1999-2017 Gentoo Foundation |
32 |
-# Distributed under the terms of the GNU General Public License v2 |
33 |
- |
34 |
-EAPI="5" |
35 |
- |
36 |
-inherit eutils multiprocessing toolchain-funcs |
37 |
- |
38 |
-MY_HASH="e78ed7a67bbaa37dc57dfb37219f505c48755e14" |
39 |
-MY_P="${PN}-${MY_HASH}" |
40 |
- |
41 |
-DESCRIPTION="Port of many Plan 9 programs and libraries" |
42 |
-HOMEPAGE="http://swtch.com/plan9port/" |
43 |
-SRC_URI="https://github.com/9fans/${PN}/archive/${MY_HASH}.tar.gz -> ${MY_P}.tar.gz" |
44 |
- |
45 |
-LICENSE="9base BSD-4 MIT LGPL-2.1 BigelowHolmes" |
46 |
-SLOT="0" |
47 |
-KEYWORDS="~amd64 ~x86" |
48 |
-IUSE="X aqua truetype" |
49 |
-REQUIRED_USE="?? ( X aqua )" |
50 |
- |
51 |
-DEPEND="X? ( x11-apps/xauth ) |
52 |
- truetype? ( media-libs/freetype |
53 |
- media-libs/fontconfig )" |
54 |
-RDEPEND="${DEPEND}" |
55 |
- |
56 |
-S="${WORKDIR}/${MY_P}" |
57 |
- |
58 |
-PLAN9=/usr/lib/plan9 |
59 |
-EPLAN9="${EPREFIX}"${PLAN9} |
60 |
-QA_MULTILIB_PATHS="${PLAN9}/.*/.*" |
61 |
- |
62 |
-src_prepare() { |
63 |
- epatch "${FILESDIR}/${PN}-"{noexecstack,cflags,builderr}".patch" |
64 |
- case ${CHOST} in |
65 |
- *freebsd10.*) # patch 9l to use -pthread also on FreeBSD-10 |
66 |
- epatch "${FILESDIR}/${PN}-freebsd-10.patch" ;; |
67 |
- *apple*) |
68 |
- sed -i 's/--noexecstack/-noexecstack/' src/mkhdr || |
69 |
- die "Failed to sed AFLAGS" ;; |
70 |
- esac |
71 |
- |
72 |
- # don't hardcode /bin and /usr/bin in PATH |
73 |
- sed -i '/PATH/s,/bin:/usr/bin:,,' INSTALL || die "sed on INSTALL failed" |
74 |
- |
75 |
- # don't hardcode /usr/{,local/}include and prefix /usr/include/* |
76 |
- for f in src/cmd/fontsrv/freetyperules.sh INSTALL \ |
77 |
- $(find -name makefile); do |
78 |
- sed -r -i -e 's,-I/usr(|/local)/include ,,g' \ |
79 |
- -e "s,-I/usr(|/local)/include,-I${EPREFIX}/usr\1/include,g" ${f} \ |
80 |
- || die "sed on ${f} failed" |
81 |
- done |
82 |
- |
83 |
- # Fix paths, done in place of ./INSTALL -c |
84 |
- einfo "Fixing hard-coded /usr/local/plan9 paths" |
85 |
- grep --null -l -r '/usr/local/plan9' | |
86 |
- xargs --null sed -i "s,/usr/local/plan9,${EPLAN9},g" |
87 |
-} |
88 |
- |
89 |
-src_configure() { |
90 |
- local myconf=() |
91 |
- if use X; then |
92 |
- myconf+=("X11=${EPREFIX}/usr" WSYSTYPE=x11) |
93 |
- elif use aqua; then |
94 |
- local wsystype=$(echo ${MACOSX_DEPLOYMENT_TARGET} | |
95 |
- awk '{if ($1 > 10.5) print "osx-cocoa"; else print "osx"}') |
96 |
- myconf+=("WSYSTYPE=${wsystype}") |
97 |
- else |
98 |
- myconf+=(WSYSTYPE=nowsys) |
99 |
- fi |
100 |
- |
101 |
- if use truetype; then |
102 |
- myconf+=(FONTSRV=fontsrv) |
103 |
- else |
104 |
- myconf+=(FONTSRV=) |
105 |
- fi |
106 |
- printf '%s\n' "${myconf[@]}" >> LOCAL.config |
107 |
-} |
108 |
- |
109 |
-src_compile() { |
110 |
- export NPROC=$(makeopts_jobs) |
111 |
- export CC9=$(tc-getCC) |
112 |
- |
113 |
- # The INSTALL script builds mk then [re]builds everything using that |
114 |
- einfo "Compiling Plan 9 from User Space can take a very long time" |
115 |
- einfo "depending on the speed of your computer. Please be patient!" |
116 |
- ./INSTALL -b || die "Please report bugs to bugs.gentoo.org, NOT Plan9Port." |
117 |
-} |
118 |
- |
119 |
-src_install() { |
120 |
- dodir "${PLAN9}" |
121 |
- |
122 |
- # P9P's man does not handle compression |
123 |
- docompress -x $PLAN9/man |
124 |
- |
125 |
- # do* plays with the executable bit, and we should not modify them |
126 |
- cp -a * "${ED}/${PLAN9}" |
127 |
- |
128 |
- # build the environment variables and install them in env.d |
129 |
- cat > "${T}/60plan9" <<-EOF |
130 |
- PLAN9="${EPLAN9}" |
131 |
- PATH="${EPLAN9}/bin" |
132 |
- ROOTPATH="${EPLAN9}/bin" |
133 |
- MANPATH="${EPLAN9}/man" |
134 |
- EOF |
135 |
- doenvd "${T}/60plan9" |
136 |
-} |
137 |
- |
138 |
-pkg_postinst() { |
139 |
- elog "Plan 9 from User Space has been successfully installed into" |
140 |
- elog "${PLAN9}. Your PLAN9 and PATH environment variables have" |
141 |
- elog "also been appropriately set, please use env-update and" |
142 |
- elog "source /etc/profile to bring that into immediate effect." |
143 |
- elog |
144 |
- elog "Please note that ${PLAN9}/bin has been appended to the" |
145 |
- elog "*end* or your PATH to prevent conflicts. To use the Plan9" |
146 |
- elog "versions of common UNIX tools, use the absolute path:" |
147 |
- elog "${PLAN9}/bin or the 9 command (eg: 9 troff)" |
148 |
- elog |
149 |
- elog "Please report any bugs to bugs.gentoo.org, NOT Plan9Port." |
150 |
-} |