/[gentoo-x86]/dev-util/plan9port/plan9port-20131024.ebuild
Gentoo

Contents of /dev-util/plan9port/plan9port-20131024.ebuild

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.2 - (show annotations) (download)
Fri Jan 24 14:41:15 2014 UTC (4 years, 5 months ago) by blueness
Branch: MAIN
CVS Tags: HEAD
Changes since 1.1: +1 -1 lines
FILE REMOVED
Version bump, remove older

(Portage version: 2.2.7/cvs/Linux x86_64, signed Manifest commit with key 0xF52D4BBA)

1 # Copyright 1999-2013 Gentoo Foundation
2 # Distributed under the terms of the GNU General Public License v2
3 # $Header: /var/cvsroot/gentoo-x86/dev-util/plan9port/plan9port-20131024.ebuild,v 1.1 2013/10/25 12:39:49 blueness Exp $
4
5 EAPI="4"
6
7 inherit eutils
8
9 DESCRIPTION="Port of many Plan 9 programs and libraries"
10 HOMEPAGE="http://swtch.com/plan9port/"
11 SRC_URI="http://${PN}.googlecode.com/files/${P}.tgz"
12
13 LICENSE="9base BSD-4 MIT LGPL-2.1 BigelowHolmes"
14 SLOT="0"
15 KEYWORDS="~amd64 ~x86"
16 IUSE="X"
17
18 DEPEND="X? ( x11-apps/xauth )"
19 RDEPEND="${DEPEND}"
20
21 S="${WORKDIR}/${PN}"
22
23 PLAN9=/usr/lib/plan9
24
25 src_prepare()
26 {
27 epatch "${FILESDIR}/${PN}-"{9660srv-errno,noexecstack,cflags,builderr}".patch"
28
29 # Fix paths, done in place of ./INSTALL -c
30 einfo "Fixing hard-coded /usr/local/plan9 paths"
31 grep --null -l -r '/usr/local/plan9' |
32 xargs --null sed -i "s!/usr/local/plan9!${PLAN9}!g"
33 }
34
35 src_configure() {
36 if ! use X; then
37 echo "WSYSTYPE=nowsys" >> LOCAL.config
38 fi
39 }
40
41 src_compile() {
42 # Convert -j5 to NPROC=5 for mk
43 export NPROC="$(echo "$MAKEOPTS" | sed -r -n 's/.*(^| )-j([0-9]*).*/\2/p')"
44
45 # The INSTALL script builds mk then [re]builds everything using that
46 einfo "Compiling Plan 9 from User Space can take a very long time"
47 einfo "depending on the speed of your computer. Please be patient!"
48 ./INSTALL -b || die "Please report bugs to bugs.gentoo.org, NOT Plan9Port."
49 }
50
51 src_install() {
52 dodir "${PLAN9}"
53
54 # P9P's man does not handle compression
55 docompress -x $PLAN9/man
56
57 # do* plays with the executable bit, and we should not modify them
58 cp -a * "${D}/${PLAN9}"
59
60 # build the environment variables and install them in env.d
61 cat > "${T}/30plan9" <<-EOF
62 PLAN9="${PLAN9}"
63 PATH="${PLAN9}/bin"
64 ROOTPATH="${PLAN9}/bin"
65 MANPATH="${PLAN9}/man"
66 EOF
67 doenvd "${T}/30plan9"
68 }
69
70 pkg_postinst() {
71 elog "Plan 9 from User Space has been successfully installed into"
72 elog "${PLAN9}. Your PLAN9 and PATH environment variables have"
73 elog "also been appropriately set, please use env-update and"
74 elog "source /etc/profile to bring that into immediate effect."
75 elog
76 elog "Please note that ${PLAN9}/bin has been appended to the"
77 elog "*end* or your PATH to prevent conflicts. To use the Plan9"
78 elog "versions of common UNIX tools, use the absolute path:"
79 elog "${PLAN9}/bin or the 9 command (eg: 9 troff)"
80 elog
81 elog "Please report any bugs to bugs.gentoo.org, NOT Plan9Port."
82 }

  ViewVC Help
Powered by ViewVC 1.1.20