Magellan Linux

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

Parent Directory Parent Directory | Revision Log Revision Log


Revision 22510 - (hide annotations) (download)
Tue Oct 21 11:32:06 2014 UTC (10 years ago) by niro
Original Path: trunk/include/xfce.sminc
File size: 1994 byte(s)
-use fdo-mime and gtk2 sminclude for post functions
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     thunar-*-plugin) URISUBDIR="thunar-plugins" ;;
18     xfce4-*-plugin) URISUBDIR="panel-plugins" ;;
19 niro 9425 parole|orage|ristretto|xfburn) URISUBDIR="apps" ;;
20 niro 16170 xfce4-dict|xfce4-mixer|xfce4-notifyd|xfce4-taskmanager|xfce4-screenshooter|xfce4-terminal) URISUBDIR="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     # special functions needed by postinstall|postremove
33 niro 22510 SPECIAL_FUNCTIONS="${SPECIAL_FUNCTIONS} xfce_postinstall xfce_postremove"
34 niro 5709
35     xfce_configure()
36     {
37     local configure_opts="$@"
38 niro 5726 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 niro 5709 }
46    
47     xfce_src_prepare()
48     {
49     munpack ${SRCFILE} || die
50     }
51    
52     xfce_src_compile()
53     {
54     cd ${SRCDIR}
55 niro 5721
56 niro 5726 xfce_configure || die
57 niro 5709 mmake ${XFCE_MAKE_OPTS} || die
58     }
59    
60 niro 16173 xfce_src_check()
61     {
62     cd ${SRCDIR}
63     mmake -k check || die
64     }
65    
66 niro 5709 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 niro 22510 fdo-mime_update_desktop_db
85     fdo-mime_update_mime_db
86     gtk2_update_icon_cache
87 niro 5709 }
88    
89     xfce_postremove()
90     {
91 niro 22510 fdo-mime_update_desktop_db
92     fdo-mime_update_mime_db
93     gtk2_update_icon_cache
94 niro 5709 }
95    
96 niro 16173 export_inherits xfce src_prepare src_compile src_check src_install postinstall postremove