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 17-23
Link Here
|
17 |
KEYWORDS="~x86" |
17 |
KEYWORDS="~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 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-2.2.4" |
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" |
|
|
63 |
eend 0 |
69 |
|
64 |
|
70 |
sed -i -e 's/@QT_LDFLAGS@/\${QT_LDFLAGS}/' \ |
65 |
ebegin "Applying sed qt_ldflags-upstream-should-fix-patch" |
|
|
66 |
sed -i -e 's/@QT_LDFLAGS@//' \ |
71 |
gb.qt/src/Makefile.am \ |
67 |
gb.qt/src/Makefile.am \ |
72 |
gb.qt/src/ext/Makefile.am \ |
68 |
gb.qt/src/ext/Makefile.am \ |
73 |
gb.qt/src/opengl/Makefile.am \ |
69 |
gb.qt/src/opengl/Makefile.am \ |
74 |
|| die "sed qt_ldflags-patch failed" |
70 |
|| die "sed qt_ldflags-upstream-should-fix-patch-1 failed" |
|
|
71 |
sed -i -e 's/@QTOPENGL_LDFLAGS@//' \ |
72 |
gb.qt/src/opengl/Makefile.am \ |
73 |
|| die "sed qt_ldflags-upstream-should-fix-patch-2 failed" |
74 |
eend 0 |
75 |
|
75 |
|
76 |
epatch "${FILESDIR}/${PN}-2.5.0-gcc-libffi-path.patch" |
76 |
epatch "${FILESDIR}/${PN}-2.5.0-gcc-libffi-path.patch" |
77 |
epatch "${FILESDIR}/${PN}-2.5.0-sdl.patch" |
77 |
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" |
78 |
epatch "${FILESDIR}/${PN}-2.5.0-mimetype-registration.patch" |
|
|
79 |
epatch "${FILESDIR}/${PN}-2.7.0-help-path.patch" |
80 |
|
81 |
ebegin "Applying sed remove-libtool-patch" |
82 |
sed -i -e '/[-][*][-]Autoconf[-][*][-]$/,/^dnl\ Like\ AC_CHECK_HEADER,\ but/d' \ |
83 |
acinclude.m4 \ |
84 |
|| die "sed remove-libtool-patch-1 failed" |
85 |
sed -i -e 's/libltdl\ //' \ |
86 |
main/Makefile.am \ |
87 |
|| die "sed remove-libtool-patch-2 failed" |
88 |
sed -i -e '/AC_CONFIG_SUBDIRS[(]libltdl[)]/d' \ |
89 |
main/configure.ac \ |
90 |
|| die "sed remove-libtool-patch-3 failed" |
91 |
rm -R ./main/libltdl \ |
92 |
&& rm config.guess config.sub install-sh ltmain.sh \ |
93 |
&& rm */config.guess */config.sub */install-sh */ltmain.sh \ |
94 |
|| die "removing libtool failed" |
95 |
eend 0 |
96 |
|
97 |
ebegin "Applying sed libtool-deprecated-patch" |
98 |
sed -i -e '/AC_PROG_LIBTOOL/d' \ |
99 |
*/configure.ac \ |
100 |
|| die "sed libtool-deprecated-patch failed" |
101 |
eend 0 |
102 |
|
103 |
epatch "${FILESDIR}/${PN}-2.7.0-r1-libtool-2.2-and-FLAGS.patch" |
80 |
|
104 |
|
81 |
eautoreconf || die "eautoreconf failed" |
105 |
eautoreconf || die "eautoreconf failed" |
82 |
} |
106 |
} |
Lines 112-126
Link Here
|
112 |
--enable-crypt |
136 |
--enable-crypt |
113 |
$(use_enable opengl) |
137 |
$(use_enable opengl) |
114 |
$(use_enable corba) |
138 |
$(use_enable corba) |
115 |
--enable-image |
139 |
$(use_enable qt3 image)" |
116 |
--enable-desktop" |
140 |
if (use qt3 || use gtk); then |
|
|
141 |
myconf="${myconf} |
142 |
--enable-desktop" |
143 |
fi |
117 |
|
144 |
|
118 |
myconf_main="--enable-intl |
145 |
myconf_main="--enable-intl |
119 |
--enable-conv |
146 |
--enable-conv |
120 |
--enable-ffi |
147 |
--enable-ffi |
121 |
--enable-preloading" |
148 |
--enable-preloading" |
122 |
|
149 |
|
123 |
if (use qt); then |
150 |
if (use qt3); then |
124 |
myconf_qt="$(use_enable opengl qtopengl) |
151 |
myconf_qt="$(use_enable opengl qtopengl) |
125 |
--enable-qt-translation " |
152 |
--enable-qt-translation " |
126 |
fi |
153 |
fi |
Lines 128-134
Link Here
|
128 |
myconf_xml="$(use_enable xml xslt)" |
155 |
myconf_xml="$(use_enable xml xslt)" |
129 |
|
156 |
|
130 |
econf ${myconf} ${myconf_main} ${myconf_qt} ${myconf_xml} \ |
157 |
econf ${myconf} ${myconf_main} ${myconf_qt} ${myconf_xml} \ |
131 |
--enable-optimization --disable-debug --disable-profiling \ |
158 |
--disable-debug --disable-profiling \ |
132 |
--docdir=/usr/share/doc/${PF} --htmldir=/usr/share/doc/${PF}/html \ |
159 |
--docdir=/usr/share/doc/${PF} --htmldir=/usr/share/doc/${PF}/html \ |
133 |
|| die "econf failed" |
160 |
|| die "econf failed" |
134 |
|
161 |
|
Lines 139-149
Link Here
|
139 |
emake DESTDIR="${D}" install -j1 || die "emake install failed" |
166 |
emake DESTDIR="${D}" install -j1 || die "emake install failed" |
140 |
|
167 |
|
141 |
dodoc AUTHORS ChangeLog NEWS README || die "dodoc failed" |
168 |
dodoc AUTHORS ChangeLog NEWS README || die "dodoc failed" |
|
|
169 |
|
170 |
if (use qt3 || use gtk); then |
171 |
make_desktop_entry "gambas2" "Gambas" "/usr/share/icons/hicolor/128x128/apps/gambas2.png" "Development" |
172 |
insinto /usr/share/icons/hicolor/128x128/apps |
173 |
newins comp/src/gb.report/new-logo.png gambas2.png |
174 |
fi |
175 |
|
176 |
insinto /usr/share/icons/hicolor/64x64/mimetypes |
177 |
doins app/mime/application-x-gambasscript.png main/mime/application-x-gambas.png |
178 |
|
179 |
insinto /usr/share/mime/application |
180 |
doins app/mime/application-x-gambasscript.xml main/mime/application-x-gambas.xml |
181 |
} |
182 |
|
183 |
my_fdo_update() { |
184 |
fdo-mime_desktop_database_update |
185 |
fdo-mime_mime_database_update |
142 |
} |
186 |
} |
143 |
|
187 |
|
144 |
pkg_postinst() { |
188 |
pkg_postinst() { |
145 |
ewarn |
189 |
my_fdo_update |
146 |
ewarn "This ebuild currently does not create menu items and does not handle Gambas" |
190 |
} |
147 |
ewarn "mime installation correctly" |
191 |
|
148 |
ewarn |
192 |
pkg_postrm() { |
|
|
193 |
my_fdo_update |
149 |
} |
194 |
} |