Magellan Linux

Contents of /trunk/extras/xdialog/xdialog-2.3.1-r4.smage2

Parent Directory Parent Directory | Revision Log Revision Log


Revision 2 - (show annotations) (download)
Fri Oct 10 13:29:42 2008 UTC (15 years, 7 months ago) by niro
File size: 1259 byte(s)
import repo
1 # $Header: /magellan-cvs/smage/xdialog/xdialog-2.3.1-r4.smage2,v 1.1 2008/06/10 16:23:39 niro Exp $
2
3 PNAME="xdialog"
4 PVER="2.3.1"
5 PBUILD="r4"
6
7 PCATEGORIE="x11-misc"
8 STATE="unstable"
9
10 DESCRIPTION="Xdialog is designed to be a drop in replacement for the dialog or cdialog programs."
11 HOMEPAGE="http://xdialog.dyns.net/"
12
13 DEPEND=">= x11-libs/gtk2+-2.12"
14 SDEPEND=">= sys-dev/gettext-0.17"
15
16 SRCFILE="${PNAME/x/X}-${PVER}.tar.bz2"
17 SRCDIR="${BUILDDIR}/${PNAME/x/X}-${PVER}"
18
19 sminclude mbuild mtools
20
21 SRC_URI=(
22 http://xdialog.free.fr/${SRCFILE}
23 mirror://${PNAME}/${SRCFILE}
24 )
25
26 src_compile()
27 {
28 cd ${SRCDIR}
29 mconfigure --enable-nls --with-gtk2 || die
30
31 # fixes some automake bugs, taken from spec file
32 sed -i "s:RANLIB = @RANLIB@:RANLIB = /usr/bin/ranlib:" lib/Makefile || die
33 sed -i "s;XGETTEXT = :;XGETTEXT = /usr/bin/gettext;" po/Makefile || die
34
35 mmake || die
36 }
37
38 src_install()
39 {
40 cd ${SRCDIR}
41
42 # needed directories
43 minstalldir /usr/share/doc/${PNAME}-${PVER}/html || die
44
45 mmake DESTDIR=${BINDIR} install || die
46
47 # fix doc locations
48 mv ${BINDIR}/usr/share/doc/Xdialog-${PVER}/* \
49 ${BINDIR}/usr/share/doc/${PNAME}-${PVER}/html || die
50 rm -rf ${BINDIR}/usr/share/doc/Xdialog-${PVER} || die
51 minstalldocs AUTHORS BUGS COPYING ChangeLog NEWS README || die
52 }

Properties

Name Value
svn:keywords Id