diff options
author | Nirbheek Chauhan <nirbheek.chauhan@gmail.com> | 2008-09-25 09:46:02 +0530 |
---|---|---|
committer | Nirbheek Chauhan <nirbheek.chauhan@gmail.com> | 2008-09-25 09:46:02 +0530 |
commit | 8ec1143daeb4aa3d496dd9f40a5804b935b858a8 (patch) | |
tree | f6bb257224a06cf3e5cddb8811470b705be67ca7 | |
parent | Eclass for gnome2 live ebuilds (diff) | |
download | gnome-live-8ec1143daeb4aa3d496dd9f40a5804b935b858a8.tar.gz gnome-live-8ec1143daeb4aa3d496dd9f40a5804b935b858a8.tar.bz2 gnome-live-8ec1143daeb4aa3d496dd9f40a5804b935b858a8.zip |
Add dev-libs/glib-2.9999
The version is 2.9999 to satisfy =dev-libs/glib-2* deps
-rw-r--r-- | dev-libs/glib/Manifest | 2 | ||||
-rw-r--r-- | dev-libs/glib/files/glib-libtool-2.patch | 12 | ||||
-rw-r--r-- | dev-libs/glib/glib-2.9999.ebuild | 73 |
3 files changed, 87 insertions, 0 deletions
diff --git a/dev-libs/glib/Manifest b/dev-libs/glib/Manifest new file mode 100644 index 0000000..c291086 --- /dev/null +++ b/dev-libs/glib/Manifest @@ -0,0 +1,2 @@ +AUX glib-libtool-2.patch 429 RMD160 42cf897e7aad8c37712112c74c58b75d47b05078 SHA1 82cefe09a9689bc7925b7ba1268f0c3a1f9fb692 SHA256 9d2eb9ae2ce33d3fbdfdf33b4f3209d0705527cc2a7047b77d6b76ce349b4ba1 +EBUILD glib-2.9999.ebuild 1755 RMD160 27afb3b8980dad897f3a6ef84d1023172d83c433 SHA1 77cc80998ad281cd0e56d2d380210d92a162921b SHA256 c6cc2da1ee0c5dd6f41f689c4d7b79acd10b6e497cb7daa7dfa69e9a133f81ea diff --git a/dev-libs/glib/files/glib-libtool-2.patch b/dev-libs/glib/files/glib-libtool-2.patch new file mode 100644 index 0000000..5f89c41 --- /dev/null +++ b/dev-libs/glib/files/glib-libtool-2.patch @@ -0,0 +1,12 @@ +diff -Naur glib-2.18.1/configure.in glib-2.18.1.new/configure.in +--- glib-2.18.1/configure.in 2008-09-18 04:04:01.000000000 +0530 ++++ glib-2.18.1.new/configure.in 2008-09-25 09:35:47.000000000 +0530 +@@ -490,6 +490,8 @@ + AM_DISABLE_STATIC + AC_LIBTOOL_WIN32_DLL + AM_PROG_LIBTOOL ++dnl create ./libtool early because it's used in configure ++m4_ifdef([LT_OUTPUT], [LT_OUTPUT]) + + if test "x$GCC" = "xyes"; then + case " $CFLAGS " in diff --git a/dev-libs/glib/glib-2.9999.ebuild b/dev-libs/glib/glib-2.9999.ebuild new file mode 100644 index 0000000..0edfaa1 --- /dev/null +++ b/dev-libs/glib/glib-2.9999.ebuild @@ -0,0 +1,73 @@ +# Copyright 1999-2008 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Header: $ + +inherit eutils flag-o-matic gnome2-live + +DESCRIPTION="The GLib library of C routines" +HOMEPAGE="http://www.gtk.org/" + +LICENSE="LGPL-2" +SLOT="2" +KEYWORDS="~amd64 ~x86" +IUSE="debug doc fam hardened selinux xattr" + +RDEPEND="virtual/libc + virtual/libiconv + xattr? ( sys-apps/attr ) + fam? ( virtual/fam )" +DEPEND="${RDEPEND} + >=dev-util/pkgconfig-0.16 + >=sys-devel/gettext-0.11 + doc? ( + >=dev-libs/libxslt-1.0 + >=dev-util/gtk-doc-1.8 + ~app-text/docbook-xml-dtd-4.1.2 + )" + +PATCHES="${PN}-libtool-2.patch" + +src_compile() { + local myconf + + epunt_cxx + + # Building with --disable-debug highly unrecommended. It will build glib in + # an unusable form as it disables some commonly used API. Please do not + # convert this to the use_enable form, as it results in a broken build. + # -- compnerd (3/27/06) + use debug && myconf="--enable-debug" + + # always build static libs, see #153807 + econf ${myconf} \ + $(use_enable xattr) \ + $(use_enable doc man) \ + $(use_enable doc gtk-doc) \ + $(use_enable fam) \ + $(use_enable selinux) \ + --enable-static \ + --with-threads=posix || die "configure failed" + + emake || die "make failed" +} + +src_test() { + make -C tests + make -C glib/tests + make -C gobject/tests + make -C gio/tests + make test + make -C tests test + make -C glib/tests test + make -C gobject/tests test + make -C gio/tests test +} + +src_install() { + emake DESTDIR="${D}" install || die "Installation failed" + + # Do not install charset.alias even if generated, leave it to libiconv + rm -f "${D}/usr/lib/charset.alias" + + dodoc AUTHORS ChangeLog* NEWS* README +} |