Magellan Linux

Annotation of /smage/trunk/core/fluxbox/fluxbox-1.1.1_20110127-r1.smage2

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1161 - (hide annotations) (download)
Thu Jan 27 23:05:31 2011 UTC (13 years, 3 months ago) by niro
File size: 2467 byte(s)
-only keep zimek_green and carp styles
-inject custom configs and set carp as default theme
1 niro 1154 # $Id$
2    
3     PNAME="fluxbox"
4     PVER="1.1.1_20110127"
5     PBUILD="r1"
6    
7     PCATEGORIE="x11-wm"
8     STATE="unstable"
9    
10     DESCRIPTION="fluxbox is yet another windowmanager for X based on blackbox."
11     HOMEPAGE="http://www.fluxbox.org/"
12    
13     DEPEND=">= x11-libs/libXpm-1
14     >= x11-libs/libXrandr-1
15     >= x11-libs/libXinerama-1
16     >= x11-libs/libXft-1
17     >= media-libs/freetype-2
18     >= media-libs/imlib2-1.4"
19    
20     SDEPEND=">= sys-dev/automake-4
21     >= sys-dev/autoconf-5"
22    
23     SRCFILE="${PNAME}-${PVER/_/}.tar.bz2"
24     SRCDIR="${BUILDDIR}/${PNAME}-${PVER/_/}"
25    
26     # fixme: keep only one style, not all
27     # and clean up bin too!
28     MCORE_ONLY_KEEP="usr/bin
29 niro 1161 usr/share/fluxbox/styles/carp
30     usr/share/fluxbox/styles/zimek_green
31 niro 1154 usr/share/fluxbox/keys
32     usr/share/fluxbox/init
33     usr/share/fluxbox/apps
34     usr/share/fluxbox/overlay
35     usr/share/fluxbox/menu
36     usr/share/fluxbox/windowmenu"
37     sminclude xorg mtools mcore-split
38    
39     SRC_URI=(
40     sourceforge://${PNAME}/${SRCFILE}
41     mirror://${PNAME}/${SRCFILE}
42     )
43    
44     UP2DATE="updatecmd_sourceforge ${PNAME}"
45    
46     src_prepare()
47     {
48     munpack ${SRCFILE} || die
49     cd ${SRCDIR}
50    
51     # enable antialias by default
52     echo "session.screen0.antialias: true" >> data/init.in || die
53    
54     # all styles should use fbsetroot
55     for style in ${SRCDIR}/data/styles/*
56     do
57     [[ -f ${style} ]] || continue
58     sed -i 's,\([^f]\)bsetroot,\1fbsetroot,' ${style} || die ${style}
59     done
60    
61     autoreconf --verbose --install --force || die
62     }
63    
64     src_compile()
65     {
66     cd ${SRCDIR}
67    
68     mconfigure \
69     --sysconfdir=/etc/X11/${PNAME} \
70 niro 1156 --disable-nls \
71 niro 1154 --enable-imlib2 \
72     --enable-xpm \
73     --enable-kde \
74     --enable-gnome \
75     --enable-xft \
76     --enable-xinerama \
77     --disable-debug \
78     || die
79    
80     mmake || die
81     }
82    
83     mcore_generic_src_install()
84     {
85     cd ${SRCDIR}
86    
87     # needed directories
88     minstalldir /usr/share/fluxbox || die
89     minstalldir /usr/share/xsessions || die
90    
91     mmake DESTDIR=${BINDIR} install || die
92    
93     # create gnome xsession file
94     echo "[Desktop Entry]
95     Encoding=UTF-8
96     Name=Fluxbox
97     Comment=This session logs you into Fluxbox
98     Exec=startfluxbox
99     TryExec=startfluxbox
100     Icon=
101     Type=Application" > ${BINDIR}/usr/share/xsessions/fluxbox.desktop || die
102    
103     minstalldocs AUTHORS COPYING ChangeLog NEWS README TODO || die
104 niro 1161
105     echo -e ${COLGREEN}" injecting custom fluxbox-configs"${COLDEFAULT}
106     mcinjectfile menu /usr/share/fluxbox || die
107     mcinjectfile init /usr/share/fluxbox || die
108     mcinjectfile keys /usr/share/fluxbox || die
109    
110     # set carp as default theme
111     sed -i 's:^\(session.styleFile\:\).*:\1\t/usr/share/fluxbox/styles/carp:' \
112     ${BINDIR}/usr/share/fluxbox/init || die
113 niro 1154 }