Magellan Linux

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

Parent Directory Parent Directory | Revision Log Revision Log


Revision 24893 - (show annotations) (download)
Tue Nov 25 02:21:44 2014 UTC (9 years, 5 months ago) by niro
File size: 2119 byte(s)
-release R11-unstable
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"; 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 *) 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 UP2DATE="updatecmd_xfce ${PNAME}"
33
34 # special functions needed by postinstall|postremove
35 SPECIAL_FUNCTIONS="${SPECIAL_FUNCTIONS} xfce_postinstall xfce_postremove"
36
37 xfce_configure()
38 {
39 local configure_opts="$@"
40 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 }
48
49 xfce_src_prepare()
50 {
51 munpack ${SRCFILE} || die
52 }
53
54 xfce_src_compile()
55 {
56 cd ${SRCDIR}
57
58 xfce_configure || die
59 mmake ${XFCE_MAKE_OPTS} || die
60 }
61
62 xfce_src_check()
63 {
64 cd ${SRCDIR}
65 mmake -k check || die
66 }
67
68 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 fdo-mime_update_desktop_db
87 fdo-mime_update_mime_db
88 gtk2_update_icon_cache
89 }
90
91 xfce_postremove()
92 {
93 fdo-mime_update_desktop_db
94 fdo-mime_update_mime_db
95 gtk2_update_icon_cache
96 }
97
98 export_inherits xfce src_prepare src_compile src_check src_install postinstall postremove