Magellan Linux

Contents of /branches/R11-unstable/extras/xdg-utils/xdg-utils-1.1.0_20140205-r1.smage2

Parent Directory Parent Directory | Revision Log Revision Log


Revision 25871 - (show annotations) (download)
Tue Nov 25 04:25:34 2014 UTC (9 years, 5 months ago) by niro
File size: 1464 byte(s)
-release branches/R11-unstable
1 # $Id$
2
3 PNAME="xdg-utils"
4 PVER="1.1.0_20140205"
5 PBUILD="r1"
6
7 PCAT="x11-apps"
8
9 DESCRIPTION="Xdg-utils is a set of command line tools that assist applications with a variety of desktop integration tasksA tool for automating interactive applications."
10 HOMEPAGE="http://portland.freedesktop.org/"
11
12 DEPEND=">= x11-apps/xprop-1.2
13 >= x11-apps/xset-1.2
14 >= x11-misc/shared-mime-info-0.90
15 >= dev-util/desktop-file-utils-0.15"
16
17 SDEPEND=">= app-text/xmlto-0.0.25
18 >= app-text/docbook-xsl-stylesheets-1.78"
19
20 if mqueryfeature "check"
21 then
22 SDEPEND="${SDEPEND}
23 >= net-www/lynx-2.8"
24 fi
25
26 SRCFILE="${PNAME}-${PVER}.tar.bz2"
27 SRCDIR="${BUILDDIR}/${PNAME}-${PVER}"
28
29 sminclude mbuild mtools
30
31 SRC_URI=( mirror://${PNAME}/${SRCFILE} )
32
33 # fake
34 UP2DATE="echo ${PVER}"
35
36 src_compile()
37 {
38 cd ${SRCDIR}
39 mconfigure || die
40 # remove prebuild stuff (git version only)
41 mmake -C scripts scripts-clean || die
42 # build (git version only)
43 mmake -C scripts scripts man || die
44 mmake || die
45 }
46
47 src_check()
48 {
49 cd ${SRCDIR}
50 make -k test || die
51 }
52
53 src_install()
54 {
55 cd ${SRCDIR}
56 mmake DESTDIR=${BINDIR} install || die
57
58 # install default xdg data dirs
59 minstalldir /etc/env.d || die
60 MCONFIG="/etc/env.d/30xdg-local"
61 mclearconfig || die
62 maddconfig 'XDG_DATA_DIRS="/usr/local/share"' || die
63 MCONFIG="/etc/env.d/90xdg-system"
64 mclearconfig || die
65 maddconfig 'XDG_DATA_DIRS="/usr/share"' || die
66 maddconfig 'XDG_CONFIG_DIRS="/etc/xdg"' || die
67
68 minstalldocs ChangeLog LICENSE TODO README || die
69 }