Magellan Linux

Contents of /branches/R11-unstable/include/xfce.sminc

Parent Directory Parent Directory | Revision Log Revision Log


Revision 22510 - (show annotations) (download)
Tue Oct 21 11:32:06 2014 UTC (9 years, 6 months ago) by niro
Original Path: trunk/include/xfce.sminc
File size: 1994 byte(s)
-use fdo-mime and gtk2 sminclude for post functions
1 # $Id$
2
3 : ${PCAT="xfce-base"}
4 : ${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 sminclude mtools gtk2 fdo-mime
15
16 case ${PNAME} in
17 thunar-*-plugin) URISUBDIR="thunar-plugins" ;;
18 xfce4-*-plugin) URISUBDIR="panel-plugins" ;;
19 parole|orage|ristretto|xfburn) URISUBDIR="apps" ;;
20 xfce4-dict|xfce4-mixer|xfce4-notifyd|xfce4-taskmanager|xfce4-screenshooter|xfce4-terminal) URISUBDIR="apps" ;;
21 *) URISUBDIR="xfce" ;;
22 esac
23
24 # default SRC_URIs
25 SRC_URI=(
26 ${SRC_URI[*]}
27 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 mirror://${PNAME}/${SRCFILE}
30 )
31
32 # special functions needed by postinstall|postremove
33 SPECIAL_FUNCTIONS="${SPECIAL_FUNCTIONS} xfce_postinstall xfce_postremove"
34
35 xfce_configure()
36 {
37 local configure_opts="$@"
38 mconfigure \
39 --libexecdir=/usr/$(mlibdir)/${PNAME} \
40 --with-html-dir=/usr/share/doc/${PNAME}-${PVER}/html \
41 --disable-debug \
42 --disable-static \
43 ${configure_opts} \
44 || die
45 }
46
47 xfce_src_prepare()
48 {
49 munpack ${SRCFILE} || die
50 }
51
52 xfce_src_compile()
53 {
54 cd ${SRCDIR}
55
56 xfce_configure || die
57 mmake ${XFCE_MAKE_OPTS} || die
58 }
59
60 xfce_src_check()
61 {
62 cd ${SRCDIR}
63 mmake -k check || die
64 }
65
66 xfce_src_install()
67 {
68 cd ${SRCDIR}
69 mmake DESTDIR=${BINDIR} ${XFCE_MAKE_OPTS} install || die
70
71 local i
72 for i in ABOUT-NLS AUTHORS BUGS CHANGES ChangeLog COPYING \
73 FAQ LICENSE NEWS README TODO
74 do
75 if [ -f ${SRCDIR}/${i} ]
76 then
77 minstalldocs ${i} || die
78 fi
79 done
80 }
81
82 xfce_postinstall()
83 {
84 fdo-mime_update_desktop_db
85 fdo-mime_update_mime_db
86 gtk2_update_icon_cache
87 }
88
89 xfce_postremove()
90 {
91 fdo-mime_update_desktop_db
92 fdo-mime_update_mime_db
93 gtk2_update_icon_cache
94 }
95
96 export_inherits xfce src_prepare src_compile src_check src_install postinstall postremove