Annotation of /trunk/extras/xdg-utils/xdg-utils-1.1.0_20140205-r1.smage2
Parent Directory | Revision Log
Revision 20749 -
(hide annotations)
(download)
Wed Feb 5 10:50:03 2014 UTC (10 years, 7 months ago) by niro
File size: 1398 byte(s)
Wed Feb 5 10:50:03 2014 UTC (10 years, 7 months ago) by niro
File size: 1398 byte(s)
-fixed dependencies and enabled src_check() and use maddconfig
1 | niro | 20747 | # $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 | niro | 20749 | 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 | niro | 20747 | 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 | niro | 20748 | 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 | } | ||
45 | |||
46 | niro | 20747 | src_install() |
47 | { | ||
48 | cd ${SRCDIR} | ||
49 | mmake DESTDIR=${BINDIR} install || die | ||
50 | |||
51 | # install default xdg data dirs | ||
52 | minstalldir /etc/env.d || die | ||
53 | niro | 20749 | MCONFIG="/etc/env.d/30xdg-local" |
54 | mclearconfig || die | ||
55 | maddconfig 'XDG_DATA_DIRS="/usr/local/share"' || die | ||
56 | MCONFIG="/etc/env.d/90xdg-system" | ||
57 | mclearconfig || die | ||
58 | maddconfig 'XDG_DATA_DIRS="/usr/share"' || die | ||
59 | maddconfig 'XDG_CONFIG_DIRS="/etc/xdg"' || die | ||
60 | niro | 20747 | |
61 | minstalldocs ChangeLog LICENSE TODO README || die | ||
62 | } |