Lines 2-8
Link Here
|
2 |
# Distributed under the terms of the GNU General Public License v2 |
2 |
# Distributed under the terms of the GNU General Public License v2 |
3 |
# $Header: /var/cvsroot/gentoo-x86/dev-util/gambas/gambas-2.7.0.ebuild,v 1.1 2008/06/26 23:32:09 darkside Exp $ |
3 |
# $Header: /var/cvsroot/gentoo-x86/dev-util/gambas/gambas-2.7.0.ebuild,v 1.1 2008/06/26 23:32:09 darkside Exp $ |
4 |
|
4 |
|
5 |
inherit autotools eutils qt3 |
5 |
inherit autotools eutils qt3 fdo-mime |
6 |
|
6 |
|
7 |
MY_P="${PN}2-${PV}" |
7 |
MY_P="${PN}2-${PV}" |
8 |
|
8 |
|
Lines 14-23
Link Here
|
14 |
|
14 |
|
15 |
SLOT="2" |
15 |
SLOT="2" |
16 |
|
16 |
|
17 |
KEYWORDS="~x86" |
17 |
KEYWORDS="~amd64 ~x86" |
18 |
IUSE="bzip2 corba curl firebird gtk kde mysql odbc opengl pcre pdf postgres qt3 sdl smtp sqlite sqlite3 svg v4l xml zlib" |
18 |
IUSE="bzip2 corba curl debug firebird gtk kde mysql odbc opengl pcre pdf postgres qt3 sdl smtp sqlite sqlite3 svg v4l xml zlib" |
19 |
|
19 |
|
20 |
DEPEND="" |
20 |
DEPEND="sys-devel/libtool" |
21 |
RDEPEND="bzip2? ( >=app-arch/bzip2-1.0.5 ) |
21 |
RDEPEND="bzip2? ( >=app-arch/bzip2-1.0.5 ) |
22 |
corba? ( >=net-misc/omniORB-4.1.0 ) |
22 |
corba? ( >=net-misc/omniORB-4.1.0 ) |
23 |
curl? ( >=net-misc/curl-7.15.5-r1 ) |
23 |
curl? ( >=net-misc/curl-7.15.5-r1 ) |
Lines 50-82
Link Here
|
50 |
if ( !( use gtk ) ); then |
50 |
if ( !( use gtk ) ); then |
51 |
use svg && die "SVG support depends on GTK being enabled" |
51 |
use svg && die "SVG support depends on GTK being enabled" |
52 |
fi |
52 |
fi |
53 |
|
|
|
54 |
ewarn |
55 |
ewarn "Your CFLAGS and LDFLAGS from make.conf are not handled correctly" |
56 |
ewarn "They are currently ignored and replaced with internal values" |
57 |
ewarn |
58 |
|
59 |
### v4l linux kernel support check needed? |
60 |
} |
53 |
} |
61 |
|
54 |
|
62 |
src_unpack() { |
55 |
src_unpack() { |
63 |
unpack ${A} |
56 |
unpack ${A} |
64 |
cd "${S}" |
57 |
cd "${S}" |
65 |
|
58 |
|
|
|
59 |
ebegin "Applying sed no-automagic-patch" |
66 |
sed -i -e 's/gb_enable_\$1=yes/gb_enable_\$1=no/' \ |
60 |
sed -i -e 's/gb_enable_\$1=yes/gb_enable_\$1=no/' \ |
67 |
acinclude.m4 \ |
61 |
acinclude.m4 \ |
68 |
|| die "sed no-automagic-patch failed" |
62 |
|| die "sed no-automagic-patch failed" |
69 |
|
63 |
eend 0 |
70 |
sed -i -e 's/@QT_LDFLAGS@/\${QT_LDFLAGS}/' \ |
|
|
71 |
gb.qt/src/Makefile.am \ |
72 |
gb.qt/src/ext/Makefile.am \ |
73 |
gb.qt/src/opengl/Makefile.am \ |
74 |
|| die "sed qt_ldflags-patch failed" |
75 |
|
64 |
|
76 |
epatch "${FILESDIR}/${PN}-2.5.0-gcc-libffi-path.patch" |
65 |
epatch "${FILESDIR}/${PN}-2.5.0-gcc-libffi-path.patch" |
77 |
epatch "${FILESDIR}/${PN}-2.5.0-sdl.patch" |
66 |
epatch "${FILESDIR}/${PN}-2.5.0-sdl.patch" |
78 |
epatch "${FILESDIR}/${PN}-2.7.0-help-path.patch" |
|
|
79 |
epatch "${FILESDIR}/${PN}-2.5.0-mimetype-registration.patch" |
67 |
epatch "${FILESDIR}/${PN}-2.5.0-mimetype-registration.patch" |
|
|
68 |
epatch "${FILESDIR}/${PN}-2.7.0-help-path.patch" |
69 |
|
70 |
# gb.qt needs this patch because it does not use GB_COMPONENT_PKG_CONFIG |
71 |
epatch "${FILESDIR}/${PN}-2.7.0-r1-gb.qt-QT_LDFLAGS.patch" |
72 |
|
73 |
# help does not appear to need libtool |
74 |
epatch "${FILESDIR}/${PN}-2.7.0-r1-help-GB_INIT_SHORT.patch" |
75 |
|
76 |
# libtool compatibility |
77 |
epatch "${FILESDIR}/${PN}-2.7.0-r1-remove-libltdl-from-main.patch" |
78 |
epatch "${FILESDIR}/${PN}-2.7.0-r1-libtool-and-FLAGS.patch" |
79 |
|
80 |
ebegin "Applying sed remove-libtool-patch" |
81 |
# remove embedded libtool.m4 file |
82 |
sed -i -e '/[-][*][-]Autoconf[-][*][-]$/,/^dnl\ Like\ AC_CHECK_HEADER,\ but/d' \ |
83 |
acinclude.m4 \ |
84 |
|| die "sed remove-libtool-patch failed" |
85 |
eend 0 |
86 |
|
87 |
ebegin "Remove provided libtool/libltdl" |
88 |
rm -R ./main/libltdl \ |
89 |
&& rm config.guess config.sub install-sh ltmain.sh \ |
90 |
&& rm */config.guess */config.sub */install-sh */ltmain.sh \ |
91 |
|| die "removing libtool failed" |
92 |
eend 0 |
80 |
|
93 |
|
81 |
eautoreconf || die "eautoreconf failed" |
94 |
eautoreconf || die "eautoreconf failed" |
82 |
} |
95 |
} |
Lines 112-126
Link Here
|
112 |
--enable-crypt |
125 |
--enable-crypt |
113 |
$(use_enable opengl) |
126 |
$(use_enable opengl) |
114 |
$(use_enable corba) |
127 |
$(use_enable corba) |
115 |
--enable-image |
128 |
$(use_enable qt3 image)" |
116 |
--enable-desktop" |
129 |
if (use qt3 || use gtk); then |
|
|
130 |
myconf="${myconf} |
131 |
--enable-desktop" |
132 |
fi |
117 |
|
133 |
|
118 |
myconf_main="--enable-intl |
134 |
myconf_main="--enable-intl |
119 |
--enable-conv |
135 |
--enable-conv |
120 |
--enable-ffi |
136 |
--enable-ffi |
121 |
--enable-preloading" |
137 |
--enable-preloading" |
122 |
|
138 |
|
123 |
if (use qt); then |
139 |
if (use qt3); then |
124 |
myconf_qt="$(use_enable opengl qtopengl) |
140 |
myconf_qt="$(use_enable opengl qtopengl) |
125 |
--enable-qt-translation " |
141 |
--enable-qt-translation " |
126 |
fi |
142 |
fi |
Lines 128-134
Link Here
|
128 |
myconf_xml="$(use_enable xml xslt)" |
144 |
myconf_xml="$(use_enable xml xslt)" |
129 |
|
145 |
|
130 |
econf ${myconf} ${myconf_main} ${myconf_qt} ${myconf_xml} \ |
146 |
econf ${myconf} ${myconf_main} ${myconf_qt} ${myconf_xml} \ |
131 |
--enable-optimization --disable-debug --disable-profiling \ |
147 |
$(use_enable debug) --disable-profiling \ |
132 |
--docdir=/usr/share/doc/${PF} --htmldir=/usr/share/doc/${PF}/html \ |
148 |
--docdir=/usr/share/doc/${PF} --htmldir=/usr/share/doc/${PF}/html \ |
133 |
|| die "econf failed" |
149 |
|| die "econf failed" |
134 |
|
150 |
|
Lines 139-149
Link Here
|
139 |
emake DESTDIR="${D}" install -j1 || die "emake install failed" |
155 |
emake DESTDIR="${D}" install -j1 || die "emake install failed" |
140 |
|
156 |
|
141 |
dodoc AUTHORS ChangeLog NEWS README || die "dodoc failed" |
157 |
dodoc AUTHORS ChangeLog NEWS README || die "dodoc failed" |
|
|
158 |
|
159 |
if (use qt3 || use gtk); then |
160 |
make_desktop_entry "gambas2" "Gambas" "/usr/share/icons/hicolor/128x128/apps/gambas2.png" "Development" \ |
161 |
|| die "make_desktop_entry failed" |
162 |
|
163 |
insinto /usr/share/icons/hicolor/128x128/apps |
164 |
newins comp/src/gb.report/new-logo.png gambas2.png \ |
165 |
|| die "newins failed" |
166 |
fi |
167 |
|
168 |
insinto /usr/share/icons/hicolor/64x64/mimetypes |
169 |
doins app/mime/application-x-gambasscript.png main/mime/application-x-gambas.png \ |
170 |
|| die "doins failed" |
171 |
|
172 |
insinto /usr/share/mime/application |
173 |
doins app/mime/application-x-gambasscript.xml main/mime/application-x-gambas.xml \ |
174 |
|| die "doins failed" |
175 |
} |
176 |
|
177 |
my_fdo_update() { |
178 |
fdo-mime_desktop_database_update |
179 |
fdo-mime_mime_database_update |
142 |
} |
180 |
} |
143 |
|
181 |
|
144 |
pkg_postinst() { |
182 |
pkg_postinst() { |
145 |
ewarn |
183 |
my_fdo_update |
146 |
ewarn "This ebuild currently does not create menu items and does not handle Gambas" |
184 |
} |
147 |
ewarn "mime installation correctly" |
185 |
|
148 |
ewarn |
186 |
pkg_postrm() { |
|
|
187 |
my_fdo_update |
149 |
} |
188 |
} |