From: | "Fabian Groffen (grobian)" <grobian@g.o> |
---|---|
To: | gentoo-commits@l.g.o |
Subject: | [gentoo-commits] gentoo-x86 commit in sys-process/top-apple: top-apple-73.ebuild metadata.xml Manifest ChangeLog |
Date: | Thu, 03 May 2012 13:23:02 |
Message-Id: | 20120503132241.9A90F2004B@flycatcher.gentoo.org |
1 | grobian 12/05/03 13:22:41 |
2 | |
3 | Added: top-apple-73.ebuild metadata.xml Manifest ChangeLog |
4 | Log: |
5 | Initial ebuild of Apple's version of top from Mac OS X Lion, patched to compile on older versions as well. |
6 | |
7 | (Portage version: 2.2.01.20366-prefix/cvs/SunOS i386) |
8 | |
9 | Revision Changes Path |
10 | 1.1 sys-process/top-apple/top-apple-73.ebuild |
11 | |
12 | file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/sys-process/top-apple/top-apple-73.ebuild?rev=1.1&view=markup |
13 | plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/sys-process/top-apple/top-apple-73.ebuild?rev=1.1&content-type=text/plain |
14 | |
15 | Index: top-apple-73.ebuild |
16 | =================================================================== |
17 | # Copyright 1999-2012 Gentoo Foundation |
18 | # Distributed under the terms of the GNU General Public License v2 |
19 | # $Header: /var/cvsroot/gentoo-x86/sys-process/top-apple/top-apple-73.ebuild,v 1.1 2012/05/03 13:22:41 grobian Exp $ |
20 | |
21 | EAPI="4" |
22 | |
23 | inherit toolchain-funcs eutils |
24 | |
25 | DESCRIPTION="Apple's top from Mac OS X Lion 10.7" |
26 | HOMEPAGE="http://www.opensource.apple.com/" |
27 | SRC_URI="http://www.opensource.apple.com/tarballs/top/top-${PV}.tar.gz |
28 | http://www.opensource.apple.com/source/libutil/libutil-11/libutil.h?txt -> libutil-11-top-${PV}.h" |
29 | |
30 | LICENSE="APSL-2 BSD" |
31 | SLOT="0" |
32 | KEYWORDS="~ppc-macos ~x64-macos ~x86-macos" |
33 | IUSE="" |
34 | |
35 | S=${WORKDIR}/top-${PV} |
36 | |
37 | src_prepare() { |
38 | # libutil.h header is missing at least on Leopard (10.5), the dylib just |
39 | # exists |
40 | [[ ! -e ${ROOT}/usr/include/libutil.h ]] && \ |
41 | cp "${DISTDIR}"/libutil-11-top-${PV}.h "${S}"/libutil.h || die |
42 | epatch "${FILESDIR}"/${P}-darwin9.patch |
43 | } |
44 | |
45 | src_compile() { |
46 | local libs="-lutil -lpanel -lncurses -framework CoreFoundation -framework IOKit" |
47 | echo "$(tc-getCC) ${CFLAGS} ${LDFLAGS} -o top -I." *.c ${libs} |
48 | $(tc-getCC) ${CFLAGS} ${LDFLAGS} -o top -I. *.c ${libs} || die |
49 | } |
50 | |
51 | src_install() { |
52 | dodir /usr/bin |
53 | exeinto /usr/bin |
54 | doexe top |
55 | } |
56 | |
57 | pkg_postinst() { |
58 | ewarn "To use top, you need to perform the following commands:" |
59 | ewarn " % sudo chown root ${EPREFIX}/usr/bin/top" |
60 | ewarn " % sudo chmod u+s ${EPREFIX}/usr/bin/top" |
61 | } |
62 | |
63 | |
64 | |
65 | 1.1 sys-process/top-apple/metadata.xml |
66 | |
67 | file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/sys-process/top-apple/metadata.xml?rev=1.1&view=markup |
68 | plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/sys-process/top-apple/metadata.xml?rev=1.1&content-type=text/plain |
69 | |
70 | Index: metadata.xml |
71 | =================================================================== |
72 | <?xml version="1.0" encoding="UTF-8"?> |
73 | <!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd"> |
74 | <pkgmetadata> |
75 | <herd>prefix</herd> |
76 | </pkgmetadata> |
77 | |
78 | |
79 | |
80 | 1.1 sys-process/top-apple/Manifest |
81 | |
82 | file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/sys-process/top-apple/Manifest?rev=1.1&view=markup |
83 | plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/sys-process/top-apple/Manifest?rev=1.1&content-type=text/plain |
84 | |
85 | Index: Manifest |
86 | =================================================================== |
87 | AUX top-apple-73-darwin9.patch 1157 RMD160 abee6012460e5b499305cc643801bbfcd0c6776b SHA1 834ee1c08de5c1cb2300846957cf44038853bbc6 SHA256 3f6ac323299af89277d4903bfacbbe5f6bcc97cb8fd10bdef85480207e74a02d |
88 | DIST libutil-11-top-73.h 5641 RMD160 8e26ce8af772ae3837f1b1ce1ba6d96a5334c362 SHA1 c327aca97c07e520131f3c7c1a84732afffdc56f SHA256 b7f92a89bb8907a00709cd564d673806f46af4875c3016e6e27191ca5f73adc6 |
89 | DIST top-73.tar.gz 69253 RMD160 277855e04a73e96c4592b39e75ea5be98c922df4 SHA1 f329fc83855a88457d28f46ca9ab3d42874e3ec1 SHA256 69668602b008a04b808e37cfbbca4335e60a1c69cac0f51891a573687d0d7227 |
90 | EBUILD top-apple-73.ebuild 1386 RMD160 c31e1026c394e0f59587b8a1cad74a5ce3daf5af SHA1 2d0cf28b08a63a0ceeb56955bb9e1973f1d37754 SHA256 889bc74919e7f9c53d03ffd19dc939abe9045683bc30c42b5bf29dbcf1f3e2e5 |
91 | MISC metadata.xml 160 RMD160 baab82f4bc435813cfde4796d42840882a9a4f8f SHA1 144e248704973cfad031c92a930aad01a62a2fda SHA256 27667dd7db1d188c12342624ec5ff2155717821d646e442aef9a691c65539ac4 |
92 | |
93 | |
94 | |
95 | 1.1 sys-process/top-apple/ChangeLog |
96 | |
97 | file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/sys-process/top-apple/ChangeLog?rev=1.1&view=markup |
98 | plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/sys-process/top-apple/ChangeLog?rev=1.1&content-type=text/plain |
99 | |
100 | Index: ChangeLog |
101 | =================================================================== |
102 | # ChangeLog for sys-process/top-apple |
103 | # Copyright 1999-2012 Gentoo Foundation; Distributed under the GPL v2 |
104 | # $Header: /var/cvsroot/gentoo-x86/sys-process/top-apple/ChangeLog,v 1.1 2012/05/03 13:22:41 grobian Exp $ |
105 | |
106 | *top-apple-73 (03 May 2012) |
107 | |
108 | 03 May 2012; Fabian Groffen <grobian@g.o> |
109 | +files/top-apple-73-darwin9.patch, +metadata.xml, +top-apple-73.ebuild: |
110 | Initial ebuild of Apple's version of top from Mac OS X Lion, patched to |
111 | compile on older versions as well. |