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-20140224.ebuild ChangeLog
Date: Tue, 25 Feb 2014 14:41:48
Message-Id: 20140225144142.18A3B2004C@flycatcher.gentoo.org
1 blueness 14/02/25 14:41:42
2
3 Modified: ChangeLog
4 Added: plan9port-20140224.ebuild
5 Log:
6 Version bump
7
8 (Portage version: 2.2.7/cvs/Linux x86_64, signed Manifest commit with key 0xF52D4BBA)
9
10 Revision Changes Path
11 1.33 dev-util/plan9port/ChangeLog
12
13 file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/dev-util/plan9port/ChangeLog?rev=1.33&view=markup
14 plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/dev-util/plan9port/ChangeLog?rev=1.33&content-type=text/plain
15 diff : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/dev-util/plan9port/ChangeLog?r1=1.32&r2=1.33
16
17 Index: ChangeLog
18 ===================================================================
19 RCS file: /var/cvsroot/gentoo-x86/dev-util/plan9port/ChangeLog,v
20 retrieving revision 1.32
21 retrieving revision 1.33
22 diff -u -r1.32 -r1.33
23 --- ChangeLog 10 Feb 2014 13:00:00 -0000 1.32
24 +++ ChangeLog 25 Feb 2014 14:41:41 -0000 1.33
25 @@ -1,6 +1,12 @@
26 # ChangeLog for dev-util/plan9port
27 # Copyright 1999-2014 Gentoo Foundation; Distributed under the GPL v2
28 -# $Header: /var/cvsroot/gentoo-x86/dev-util/plan9port/ChangeLog,v 1.32 2014/02/10 13:00:00 blueness Exp $
29 +# $Header: /var/cvsroot/gentoo-x86/dev-util/plan9port/ChangeLog,v 1.33 2014/02/25 14:41:41 blueness Exp $
30 +
31 +*plan9port-20140224 (25 Feb 2014)
32 +
33 + 25 Feb 2014; Anthony G. Basile <blueness@g.o>
34 + +plan9port-20140224.ebuild:
35 + Version bump
36
37 10 Feb 2014; Anthony G. Basile <blueness@g.o>
38 plan9port-20130320.ebuild, plan9port-20140107.ebuild,
39
40
41
42 1.1 dev-util/plan9port/plan9port-20140224.ebuild
43
44 file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/dev-util/plan9port/plan9port-20140224.ebuild?rev=1.1&view=markup
45 plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/dev-util/plan9port/plan9port-20140224.ebuild?rev=1.1&content-type=text/plain
46
47 Index: plan9port-20140224.ebuild
48 ===================================================================
49 # Copyright 1999-2014 Gentoo Foundation
50 # Distributed under the terms of the GNU General Public License v2
51 # $Header: /var/cvsroot/gentoo-x86/dev-util/plan9port/plan9port-20140224.ebuild,v 1.1 2014/02/25 14:41:41 blueness Exp $
52
53 EAPI="4"
54
55 inherit eutils
56
57 DESCRIPTION="Port of many Plan 9 programs and libraries"
58 HOMEPAGE="http://swtch.com/plan9port/"
59 SRC_URI="http://${PN}.googlecode.com/files/${P}.tgz"
60
61 LICENSE="9base BSD-4 MIT LGPL-2.1 BigelowHolmes"
62 SLOT="0"
63 KEYWORDS="~amd64 ~x86"
64 IUSE="X"
65
66 DEPEND="X? ( x11-apps/xauth )"
67 RDEPEND="${DEPEND}"
68
69 S="${WORKDIR}/${PN}"
70
71 PLAN9=/usr/lib/plan9
72 QA_MULTILIB_PATHS="${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 }