Annotation of /trunk/include/xfce.sminc
Parent Directory | Revision Log
Revision 22551 -
(hide annotations)
(download)
Thu Oct 23 12:49:30 2014 UTC (9 years, 11 months ago) by niro
File size: 2119 byte(s)
Thu Oct 23 12:49:30 2014 UTC (9 years, 11 months ago) by niro
File size: 2119 byte(s)
-honor up2date
1 | niro | 5709 | # $Id$ |
2 | |||
3 | niro | 9863 | : ${PCAT="xfce-base"} |
4 | niro | 5709 | : ${HOMEPAGE="http://www.xfce.org/"} |
5 | |||
6 | : ${SRCFILE="${PNAME}-${PVER}.tar.bz2"} | ||
7 | : ${SRCDIR="${BUILDDIR}/${PNAME}-${PVER}"} | ||
8 | |||
9 | SDEPEND="${SDEPEND} | ||
10 | >= dev-util/pkgconfig-0.23 | ||
11 | >= dev-util/intltool-0.40 | ||
12 | >= sys-dev/gettext-0.17" | ||
13 | |||
14 | niro | 22510 | sminclude mtools gtk2 fdo-mime |
15 | niro | 5709 | |
16 | niro | 9012 | case ${PNAME} in |
17 | niro | 22551 | thunar-*-plugin) URISUBDIR="thunar-plugins"; UP2SUBDIR="thunar-plugins" ;; |
18 | xfce4-*-plugin) URISUBDIR="panel-plugins"; UP2SUBDIR="panel-plugins" ;; | ||
19 | parole|orage|ristretto|xfburn) URISUBDIR="apps"; UP2SUBDIR="apps";; | ||
20 | xfce4-dict|xfce4-mixer|xfce4-notifyd|xfce4-taskmanager|xfce4-screenshooter|xfce4-terminal) URISUBDIR="apps"; UP2SUBDIR="apps" ;; | ||
21 | niro | 9386 | *) URISUBDIR="xfce" ;; |
22 | niro | 9012 | esac |
23 | |||
24 | niro | 5709 | # default SRC_URIs |
25 | SRC_URI=( | ||
26 | ${SRC_URI[*]} | ||
27 | niro | 9018 | http://mocha.xfce.org/archive/src/${URISUBDIR}/${PNAME}/$(echo ${PVER} | cut -d. -f1-2)/${SRCFILE} |
28 | http://archive.xfce.org/src/${URISUBDIR}/${PNAME}/$(echo ${PVER} | cut -d. -f1-2)/${SRCFILE} | ||
29 | niro | 5709 | mirror://${PNAME}/${SRCFILE} |
30 | ) | ||
31 | |||
32 | niro | 22551 | UP2DATE="updatecmd_xfce ${PNAME}" |
33 | |||
34 | niro | 5709 | # special functions needed by postinstall|postremove |
35 | niro | 22510 | SPECIAL_FUNCTIONS="${SPECIAL_FUNCTIONS} xfce_postinstall xfce_postremove" |
36 | niro | 5709 | |
37 | xfce_configure() | ||
38 | { | ||
39 | local configure_opts="$@" | ||
40 | niro | 5726 | mconfigure \ |
41 | --libexecdir=/usr/$(mlibdir)/${PNAME} \ | ||
42 | --with-html-dir=/usr/share/doc/${PNAME}-${PVER}/html \ | ||
43 | --disable-debug \ | ||
44 | --disable-static \ | ||
45 | ${configure_opts} \ | ||
46 | || die | ||
47 | niro | 5709 | } |
48 | |||
49 | xfce_src_prepare() | ||
50 | { | ||
51 | munpack ${SRCFILE} || die | ||
52 | } | ||
53 | |||
54 | xfce_src_compile() | ||
55 | { | ||
56 | cd ${SRCDIR} | ||
57 | niro | 5721 | |
58 | niro | 5726 | xfce_configure || die |
59 | niro | 5709 | mmake ${XFCE_MAKE_OPTS} || die |
60 | } | ||
61 | |||
62 | niro | 16173 | xfce_src_check() |
63 | { | ||
64 | cd ${SRCDIR} | ||
65 | mmake -k check || die | ||
66 | } | ||
67 | |||
68 | niro | 5709 | xfce_src_install() |
69 | { | ||
70 | cd ${SRCDIR} | ||
71 | mmake DESTDIR=${BINDIR} ${XFCE_MAKE_OPTS} install || die | ||
72 | |||
73 | local i | ||
74 | for i in ABOUT-NLS AUTHORS BUGS CHANGES ChangeLog COPYING \ | ||
75 | FAQ LICENSE NEWS README TODO | ||
76 | do | ||
77 | if [ -f ${SRCDIR}/${i} ] | ||
78 | then | ||
79 | minstalldocs ${i} || die | ||
80 | fi | ||
81 | done | ||
82 | } | ||
83 | |||
84 | xfce_postinstall() | ||
85 | { | ||
86 | niro | 22510 | fdo-mime_update_desktop_db |
87 | fdo-mime_update_mime_db | ||
88 | gtk2_update_icon_cache | ||
89 | niro | 5709 | } |
90 | |||
91 | xfce_postremove() | ||
92 | { | ||
93 | niro | 22510 | fdo-mime_update_desktop_db |
94 | fdo-mime_update_mime_db | ||
95 | gtk2_update_icon_cache | ||
96 | niro | 5709 | } |
97 | |||
98 | niro | 16173 | export_inherits xfce src_prepare src_compile src_check src_install postinstall postremove |