Gentoo Archives: gentoo-commits

From: "Anthony G. Basile (blueness)" <blueness@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] gentoo-x86 commit in dev-util/plan9port: plan9port-20140306.ebuild ChangeLog plan9port-20140228.ebuild
Date: Thu, 27 Mar 2014 12:40:26
Message-Id: 20140327124016.DCA342004F@flycatcher.gentoo.org
1 blueness 14/03/27 12:40:16
2
3 Modified: ChangeLog
4 Added: plan9port-20140306.ebuild
5 Removed: plan9port-20140228.ebuild
6 Log:
7 Version bump
8
9 (Portage version: 2.2.7/cvs/Linux x86_64, signed Manifest commit with key 0xF52D4BBA)
10
11 Revision Changes Path
12 1.36 dev-util/plan9port/ChangeLog
13
14 file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/dev-util/plan9port/ChangeLog?rev=1.36&view=markup
15 plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/dev-util/plan9port/ChangeLog?rev=1.36&content-type=text/plain
16 diff : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/dev-util/plan9port/ChangeLog?r1=1.35&r2=1.36
17
18 Index: ChangeLog
19 ===================================================================
20 RCS file: /var/cvsroot/gentoo-x86/dev-util/plan9port/ChangeLog,v
21 retrieving revision 1.35
22 retrieving revision 1.36
23 diff -u -r1.35 -r1.36
24 --- ChangeLog 6 Mar 2014 15:17:55 -0000 1.35
25 +++ ChangeLog 27 Mar 2014 12:40:16 -0000 1.36
26 @@ -1,6 +1,12 @@
27 # ChangeLog for dev-util/plan9port
28 # Copyright 1999-2014 Gentoo Foundation; Distributed under the GPL v2
29 -# $Header: /var/cvsroot/gentoo-x86/dev-util/plan9port/ChangeLog,v 1.35 2014/03/06 15:17:55 blueness Exp $
30 +# $Header: /var/cvsroot/gentoo-x86/dev-util/plan9port/ChangeLog,v 1.36 2014/03/27 12:40:16 blueness Exp $
31 +
32 +*plan9port-20140306 (27 Mar 2014)
33 +
34 + 27 Mar 2014; Anthony G. Basile <blueness@g.o>
35 + +plan9port-20140306.ebuild, -plan9port-20140228.ebuild:
36 + Version bump
37
38 *plan9port-20140304 (06 Mar 2014)
39
40
41
42
43 1.1 dev-util/plan9port/plan9port-20140306.ebuild
44
45 file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/dev-util/plan9port/plan9port-20140306.ebuild?rev=1.1&view=markup
46 plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/dev-util/plan9port/plan9port-20140306.ebuild?rev=1.1&content-type=text/plain
47
48 Index: plan9port-20140306.ebuild
49 ===================================================================
50 # Copyright 1999-2014 Gentoo Foundation
51 # Distributed under the terms of the GNU General Public License v2
52 # $Header: /var/cvsroot/gentoo-x86/dev-util/plan9port/plan9port-20140306.ebuild,v 1.1 2014/03/27 12:40:16 blueness Exp $
53
54 EAPI="4"
55
56 inherit eutils
57
58 DESCRIPTION="Port of many Plan 9 programs and libraries"
59 HOMEPAGE="http://swtch.com/plan9port/"
60 SRC_URI="http://${PN}.googlecode.com/files/${P}.tgz"
61
62 LICENSE="9base BSD-4 MIT LGPL-2.1 BigelowHolmes"
63 SLOT="0"
64 KEYWORDS="~amd64 ~x86"
65 IUSE="X"
66
67 DEPEND="X? ( x11-apps/xauth )"
68 RDEPEND="${DEPEND}"
69
70 S="${WORKDIR}/${PN}"
71
72 PLAN9=/usr/lib/plan9
73 QA_MULTILIB_PATHS="${PLAN9}/.*/.*"
74
75 src_prepare()
76 {
77 epatch "${FILESDIR}/${PN}-"{noexecstack,cflags,builderr}".patch"
78
79 # Fix paths, done in place of ./INSTALL -c
80 einfo "Fixing hard-coded /usr/local/plan9 paths"
81 grep --null -l -r '/usr/local/plan9' |
82 xargs --null sed -i "s!/usr/local/plan9!${PLAN9}!g"
83 }
84
85 src_configure() {
86 if ! use X; then
87 echo "WSYSTYPE=nowsys" >> LOCAL.config
88 fi
89 }
90
91 src_compile() {
92 # Convert -j5 to NPROC=5 for mk
93 export NPROC="$(echo "$MAKEOPTS" | sed -r -n 's/.*(^| )-j([0-9]*).*/\2/p')"
94
95 # The INSTALL script builds mk then [re]builds everything using that
96 einfo "Compiling Plan 9 from User Space can take a very long time"
97 einfo "depending on the speed of your computer. Please be patient!"
98 ./INSTALL -b || die "Please report bugs to bugs.gentoo.org, NOT Plan9Port."
99 }
100
101 src_install() {
102 dodir "${PLAN9}"
103
104 # P9P's man does not handle compression
105 docompress -x $PLAN9/man
106
107 # do* plays with the executable bit, and we should not modify them
108 cp -a * "${D}/${PLAN9}"
109
110 # build the environment variables and install them in env.d
111 cat > "${T}/30plan9" <<-EOF
112 PLAN9="${PLAN9}"
113 PATH="${PLAN9}/bin"
114 ROOTPATH="${PLAN9}/bin"
115 MANPATH="${PLAN9}/man"
116 EOF
117 doenvd "${T}/30plan9"
118 }
119
120 pkg_postinst() {
121 elog "Plan 9 from User Space has been successfully installed into"
122 elog "${PLAN9}. Your PLAN9 and PATH environment variables have"
123 elog "also been appropriately set, please use env-update and"
124 elog "source /etc/profile to bring that into immediate effect."
125 elog
126 elog "Please note that ${PLAN9}/bin has been appended to the"
127 elog "*end* or your PATH to prevent conflicts. To use the Plan9"
128 elog "versions of common UNIX tools, use the absolute path:"
129 elog "${PLAN9}/bin or the 9 command (eg: 9 troff)"
130 elog
131 elog "Please report any bugs to bugs.gentoo.org, NOT Plan9Port."
132 }