1 |
nerdboy 09/04/20 05:44:09 |
2 |
|
3 |
Added: metadata.xml ChangeLog liblist-2.1.ebuild |
4 |
Log: |
5 |
New ebuild for a generic list library, a required dependency for ferret. |
6 |
(Portage version: 2.2_rc30/cvs/Linux x86_64) |
7 |
|
8 |
Revision Changes Path |
9 |
1.1 dev-libs/liblist/metadata.xml |
10 |
|
11 |
file : http://sources.gentoo.org/viewcvs.py/gentoo-x86/dev-libs/liblist/metadata.xml?rev=1.1&view=markup |
12 |
plain: http://sources.gentoo.org/viewcvs.py/gentoo-x86/dev-libs/liblist/metadata.xml?rev=1.1&content-type=text/plain |
13 |
|
14 |
Index: metadata.xml |
15 |
=================================================================== |
16 |
<?xml version="1.0" encoding="UTF-8"?> |
17 |
<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd"> |
18 |
<pkgmetadata> |
19 |
<herd>dev-tools</herd> |
20 |
<maintainer> |
21 |
<email>nerdboy@g.o</email> |
22 |
<description>Primary maintainer</description> |
23 |
</maintainer> |
24 |
<longdescription> |
25 |
This package provides generic linked-list manipulation routines. In addition, |
26 |
queue and stack abstractions are provided by single header files. |
27 |
</longdescription> |
28 |
</pkgmetadata> |
29 |
|
30 |
|
31 |
|
32 |
1.1 dev-libs/liblist/ChangeLog |
33 |
|
34 |
file : http://sources.gentoo.org/viewcvs.py/gentoo-x86/dev-libs/liblist/ChangeLog?rev=1.1&view=markup |
35 |
plain: http://sources.gentoo.org/viewcvs.py/gentoo-x86/dev-libs/liblist/ChangeLog?rev=1.1&content-type=text/plain |
36 |
|
37 |
Index: ChangeLog |
38 |
=================================================================== |
39 |
# ChangeLog for dev-libs/liblist |
40 |
# Copyright 1999-2009 Gentoo Foundation; Distributed under the GPL v2 |
41 |
# $Header: /var/cvsroot/gentoo-x86/dev-libs/liblist/ChangeLog,v 1.1 2009/04/20 05:44:09 nerdboy Exp $ |
42 |
|
43 |
*liblist-2.1 (20 Apr 2009) |
44 |
|
45 |
20 Apr 2009; Steve Arnold <nerdboy@g.o> +metadata.xml, |
46 |
+liblist-2.1.ebuild: |
47 |
New ebuild for a generic list library, a required dependency for ferret. |
48 |
Updated source code hosted by me (no upstream URL anymore). Comes with |
49 |
a nice technical paper and example routines. |
50 |
|
51 |
|
52 |
|
53 |
|
54 |
1.1 dev-libs/liblist/liblist-2.1.ebuild |
55 |
|
56 |
file : http://sources.gentoo.org/viewcvs.py/gentoo-x86/dev-libs/liblist/liblist-2.1.ebuild?rev=1.1&view=markup |
57 |
plain: http://sources.gentoo.org/viewcvs.py/gentoo-x86/dev-libs/liblist/liblist-2.1.ebuild?rev=1.1&content-type=text/plain |
58 |
|
59 |
Index: liblist-2.1.ebuild |
60 |
=================================================================== |
61 |
# Copyright 1999-2009 Gentoo Foundation |
62 |
# Distributed under the terms of the GNU General Public License v2 |
63 |
# $Header: /var/cvsroot/gentoo-x86/dev-libs/liblist/liblist-2.1.ebuild,v 1.1 2009/04/20 05:44:09 nerdboy Exp $ |
64 |
|
65 |
inherit eutils toolchain-funcs |
66 |
|
67 |
DESCRIPTION="This package provides generic linked-list manipulation routines, plus queues and stacks." |
68 |
HOMEPAGE="http://www.gentoogeek.org/viewvc/C/liblist/" |
69 |
SRC_URI="http://www.gentoogeek.org/files/${P}.tar.gz" |
70 |
|
71 |
LICENSE="GPL-2" |
72 |
SLOT="0" |
73 |
KEYWORDS="~amd64 ~ppc ~ppc64 ~x86" |
74 |
IUSE="doc examples" |
75 |
|
76 |
src_unpack() { |
77 |
unpack ${A} |
78 |
cd "${S}" |
79 |
sed -i -e "s:/usr/lib:/usr/$(get_libdir):g" Makefile \ |
80 |
examples/cache/Makefile || die "sed 1 failed" |
81 |
} |
82 |
|
83 |
src_compile() { |
84 |
make CC="$(tc-getCC)" || die "make failed" |
85 |
} |
86 |
|
87 |
src_install() { |
88 |
newman list.3 llist.3 |
89 |
newman stack.man lstack.3 |
90 |
newman queue.man lqueue.3 |
91 |
dolib.a liblist.a |
92 |
insinto /usr/include |
93 |
doins list.h queue.h stack.h |
94 |
dodoc README |
95 |
|
96 |
if use examples; then |
97 |
dolib.a examples/cache/libcache.a |
98 |
dobin examples/cache/cachetest |
99 |
newman cache.3 lcache.3 |
100 |
insinto /usr/share/doc/${P}/examples |
101 |
doins examples/{*.c,Makefile,README} |
102 |
insinto /usr/share/doc/${P}/examples/cache |
103 |
doins examples/cache/{*.c,Makefile,README} |
104 |
doins |
105 |
fi |
106 |
|
107 |
if use doc; then |
108 |
insinto /usr/share/doc/${P} |
109 |
doins paper/paper.ps |
110 |
fi |
111 |
} |
112 |
|
113 |
pkg_postinst() { |
114 |
elog "Note the man pages for this package have been renamed to avoid" |
115 |
elog "name collisions with some system functions, however, the libs" |
116 |
elog "and header files have not been changed." |
117 |
elog "The new names are llist, lcache, lqueue, and lstack." |
118 |
} |