Contents of /branches/magellan-next/core/dosfstools/dosfstools-3.0.12-r1.smage2
Parent Directory | Revision Log
Revision 9088 -
(show annotations)
(download)
Wed Nov 2 15:52:43 2011 UTC (12 years, 10 months ago) by niro
File size: 1015 byte(s)
Wed Nov 2 15:52:43 2011 UTC (12 years, 10 months ago) by niro
File size: 1015 byte(s)
-tar.bz2 was compressed by upstream with gzip
1 | # $Id$ |
2 | |
3 | PNAME="dosfstools" |
4 | PVER="3.0.12" |
5 | PBUILD="r1" |
6 | |
7 | PCATEGORIE="sys-fs" |
8 | |
9 | DESCRIPTION="Tools to handle DOS filesystems." |
10 | HOMEPAGE="http://www.daniel-baumann.ch/software/dosfstools/" |
11 | |
12 | DEPEND=">= virtual/glibc" |
13 | SDEPEND=">= sys-apps/sed-4" |
14 | |
15 | SRCFILE="${PNAME}-${PVER}.tar.gz" |
16 | SRCDIR="${BUILDDIR}/${PNAME}-${PVER}" |
17 | |
18 | SRC_URI=( |
19 | http://www.daniel-baumann.ch/software/${PNAME}/${SRCFILE} |
20 | mirror://${PNAME}/${SRCFILE} |
21 | ) |
22 | |
23 | UP2DATE="updatecmd ${HOMEPAGE} | lasttarball" |
24 | |
25 | src_prepare() |
26 | { |
27 | munpack ${SRCFILE} || die |
28 | cd ${SRCDIR} |
29 | |
30 | # set bin/sbin prefix to /usr |
31 | sed -i "s:^\(PREFIX =\).*:\1 /usr:" Makefile || die |
32 | |
33 | # overrride doc dir, we install them manually |
34 | sed -i "s:^\(DOCDIR =\).*:\1 /usr/share/doc/${PNAME}-${PVER}:" Makefile || die |
35 | } |
36 | |
37 | src_compile() |
38 | { |
39 | cd ${SRCDIR} |
40 | mmake || die |
41 | } |
42 | |
43 | src_install() |
44 | { |
45 | cd ${SRCDIR} |
46 | mmake DESTDIR=${BINDIR} install || die |
47 | |
48 | # remove unwanted docs, installing them manully |
49 | rm -rf ${BINDIR}/usr/share/doc/${PNAME}-${PVER}/dosfstools || die |
50 | minstalldocs ChangeLog COPYING doc/* || die |
51 | } |