Annotation of /trunk/core/klibc/klibc-1.5-r5.smage2
Parent Directory | Revision Log
Revision 2 -
(hide annotations)
(download)
Fri Oct 10 13:29:42 2008 UTC (15 years, 7 months ago) by niro
File size: 1848 byte(s)
Fri Oct 10 13:29:42 2008 UTC (15 years, 7 months ago) by niro
File size: 1848 byte(s)
import repo
1 | niro | 2 | # $Header: /magellan-cvs/smage/klibc/klibc-1.5-r5.smage2,v 1.1 2008/05/02 10:18:25 niro Exp $ |
2 | |||
3 | PNAME="klibc" | ||
4 | PVER="1.5" | ||
5 | PBUILD="r5" | ||
6 | |||
7 | PCATEGORIE="dev-libs" | ||
8 | STATE="unstable" | ||
9 | |||
10 | DESCRIPTION="A minimal libc subset for use with initramfs." | ||
11 | HOMEPAGE="http://www.kernel.org/pub/linux/libs/klibc/" | ||
12 | |||
13 | DEPEND=">= dev-lang/perl-5" | ||
14 | SDEPEND=">= virtual/kernel-sources" | ||
15 | |||
16 | SRCFILE="${PNAME}-${PVER}.tar.bz2" | ||
17 | SRCDIR="${BUILDDIR}/${PNAME}-${PVER}" | ||
18 | |||
19 | # global var: ${LINUX_SOURCES} | ||
20 | # location where they are | ||
21 | [[ -z ${LINUX_SOURCES} ]] && LINUX_SOURCES="/usr/src/linux" | ||
22 | |||
23 | sminclude mtools | ||
24 | |||
25 | SRC_URI=( | ||
26 | http://www.kernel.org/pub/linux/libs/${PNAME}/${SRCFILE} | ||
27 | mirror://${PNAME}/${SRCFILE} | ||
28 | mirror://${PNAME}/${PNAME}-${PVER}-2.6.24.patch | ||
29 | ) | ||
30 | |||
31 | UP2DATE="updatecmd ${HOMEPAGE} | lasttarball" | ||
32 | |||
33 | src_prepare() | ||
34 | { | ||
35 | munpack ${SRCFILE} || die | ||
36 | cd ${SRCDIR} | ||
37 | |||
38 | # fixes include issues with merged x86/x86_64 asm trees | ||
39 | mpatch ${PNAME}-${PVER}-2.6.24.patch || die | ||
40 | |||
41 | ln -snf ${LINUX_SOURCES} ${SRCDIR}/linux || die | ||
42 | } | ||
43 | |||
44 | src_compile() | ||
45 | { | ||
46 | cd ${SRCDIR} | ||
47 | mmake \ | ||
48 | mandir=/usr/share/man \ | ||
49 | libdir=/usr/$(mlibdir) \ | ||
50 | INSTALLDIR=/usr/$(mlibdir)/klibc \ | ||
51 | SHLIBDIR=/$(mlibdir) \ | ||
52 | || die | ||
53 | } | ||
54 | |||
55 | src_install() | ||
56 | { | ||
57 | cd ${SRCDIR} | ||
58 | |||
59 | # needed directories | ||
60 | minstalldir /usr/share/aclocal || die | ||
61 | |||
62 | mmake \ | ||
63 | INSTALLROOT=${BINDIR} \ | ||
64 | mandir=/usr/share/man \ | ||
65 | libdir=/usr/$(mlibdir) \ | ||
66 | INSTALLDIR=/usr/$(mlibdir)/klibc \ | ||
67 | SHLIBDIR=/$(mlibdir) \ | ||
68 | install || die | ||
69 | |||
70 | # remove hardlinks; use symlinks | ||
71 | rm ${BINDIR}/usr/$(mlibdir)/klibc/bin/{gunzip,zcat} || die | ||
72 | mlink gzip /usr/$(mlibdir)/klibc/bin/gunzip || die | ||
73 | mlink gzip /usr/$(mlibdir)/klibc/bin/zcat || die | ||
74 | |||
75 | # missing ac-includes | ||
76 | minstallfile contrib/klibc.m4 /usr/share/aclocal || die | ||
77 | |||
78 | # broken due the patch | ||
79 | mlink asm-x86 /usr/$(mlibdir)/klibc/include/asm || die | ||
80 | |||
81 | # docs | ||
82 | minstalldocs README usr/klibc/{CAVEATS,LICENSE} usr/dash/README.klibc || die | ||
83 | } |
Properties
Name | Value |
---|---|
svn:keywords | Id |