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