diff options
author | Ben de Groot <yngwin@gentoo.org> | 2009-07-08 11:34:48 +0000 |
---|---|---|
committer | Ben de Groot <yngwin@gentoo.org> | 2009-07-08 11:34:48 +0000 |
commit | fce95167de51c686e4bcc3471dece7bba61954d6 (patch) | |
tree | 85d8ca57d44b6319dca8bb3c14cb7f4c36b2cc23 /x11-libs/fltk | |
parent | Add same mask to hardened/linux to work around this design fail of not having... (diff) | |
download | historical-fce95167de51c686e4bcc3471dece7bba61954d6.tar.gz historical-fce95167de51c686e4bcc3471dece7bba61954d6.tar.bz2 historical-fce95167de51c686e4bcc3471dece7bba61954d6.zip |
Remove glibc-2.10 patches from 1.1.9 and 2.0_pre6786, so they can be stabled. Reapplied those patches to the -r1 ebuilds, so it works for ~arch users.
Package-Manager: portage-2.2_rc33/cvs/Linux x86_64
Diffstat (limited to 'x11-libs/fltk')
-rw-r--r-- | x11-libs/fltk/ChangeLog | 12 | ||||
-rw-r--r-- | x11-libs/fltk/Manifest | 8 | ||||
-rw-r--r-- | x11-libs/fltk/fltk-1.1.9-r1.ebuild | 133 | ||||
-rw-r--r-- | x11-libs/fltk/fltk-1.1.9.ebuild | 9 | ||||
-rw-r--r-- | x11-libs/fltk/fltk-2.0_pre6786-r1.ebuild | 84 | ||||
-rw-r--r-- | x11-libs/fltk/fltk-2.0_pre6786.ebuild | 6 |
6 files changed, 239 insertions, 13 deletions
diff --git a/x11-libs/fltk/ChangeLog b/x11-libs/fltk/ChangeLog index 999e2ef90b04..00d23f2fa016 100644 --- a/x11-libs/fltk/ChangeLog +++ b/x11-libs/fltk/ChangeLog @@ -1,6 +1,16 @@ # ChangeLog for x11-libs/fltk # Copyright 1999-2009 Gentoo Foundation; Distributed under the GPL v2 -# $Header: /var/cvsroot/gentoo-x86/x11-libs/fltk/ChangeLog,v 1.116 2009/07/05 08:37:00 yngwin Exp $ +# $Header: /var/cvsroot/gentoo-x86/x11-libs/fltk/ChangeLog,v 1.117 2009/07/08 11:34:48 yngwin Exp $ + +*fltk-2.0_pre6786-r1 (08 Jul 2009) +*fltk-1.1.9-r1 (08 Jul 2009) + + 08 Jul 2009; Ben de Groot <yngwin@gentoo.org> fltk-1.1.9.ebuild, + +fltk-1.1.9-r1.ebuild, fltk-2.0_pre6786.ebuild, + +fltk-2.0_pre6786-r1.ebuild: + Remove glibc-2.10 patches from 1.1.9 and 2.0_pre6786, so they can be + stabled. Reapplied those patches to the -r1 ebuilds, so it works for ~arch + users. 05 Jul 2009; Ben de Groot <yngwin@gentoo.org> fltk-1.1.9.ebuild, +files/fltk-1.1.9-consts.patch, +files/fltk-1.1.9-glibc2.10-scandir.patch: diff --git a/x11-libs/fltk/Manifest b/x11-libs/fltk/Manifest index ec87e225f378..9e1236a38c86 100644 --- a/x11-libs/fltk/Manifest +++ b/x11-libs/fltk/Manifest @@ -21,7 +21,9 @@ DIST fltk-2.0.x-r6786.tar.bz2 2527307 RMD160 aa9199bd7ed15b4b2fc2da976d88f7396f2 EBUILD fltk-1.1.7-r2.ebuild 2901 RMD160 637647ff6a3e959c2dee49895e6b476c8fa1de6e SHA1 64687d0490d0553dda3270bd9ba6099d37f9b73f SHA256 4a14d52cba8be1b3697f872458344cbb4dad2f515afffb044ba7490e76053d62 EBUILD fltk-1.1.7-r3.ebuild 2954 RMD160 900b727c7202c9eb89e628ac0c3ee758fff36abe SHA1 611faa54932813fe6a72ba4f0619efe325a70473 SHA256 ff944088c8017b3d4fc219f66de21f783964df58c68c745c5fbc70d0caf398ad EBUILD fltk-1.1.7.ebuild 2595 RMD160 845d77b4bd8c64eeeed12327b77641c42c6bc6a7 SHA1 db3865396cc13bc10ec7d5d61ccdeb727290c8fb SHA256 d04a6c8737169dd7d93bce548b7006f88770f49f15f7875fb80f35e71b0ab4bd -EBUILD fltk-1.1.9.ebuild 3610 RMD160 b6789f484d6864ced3ab4570a9b71b7fec6964b3 SHA1 16a89b5b13866a712bd7783570e0d7daad0facaa SHA256 6a6d310df0fd9ebd6db6750633f1c24b92c6846fde78cd6ada030073e7d977b1 -EBUILD fltk-2.0_pre6786.ebuild 2368 RMD160 c3dee013f005a8c6cabaaf4dcc14c251ccb88591 SHA1 375b265cfbdee4a8b21d73cf5b46e905a6e285f8 SHA256 cf48d7ce37a823d5961c99d0164c1aca7a45fd0ae05bac91914aedde761e6bf7 -MISC ChangeLog 16163 RMD160 caabde041e0d5f0bf4ed042cee49b08269b17c7f SHA1 0d4c149793a154c53caf8939f0b275453013cd94 SHA256 31d38db2ada40ea67824a3dfacd88cf4bb45fff28fcfdad9e125cf8ff60d8e66 +EBUILD fltk-1.1.9-r1.ebuild 3630 RMD160 f526782cf413d71ac360cd392f1c2e3d5d9e51a3 SHA1 1521fa2eb75dd36985f71bb687c29fa2629b7807 SHA256 541a74b72701be75add55cf19d8e49a7ec89fef3404cf72de546c63364dc0c40 +EBUILD fltk-1.1.9.ebuild 3525 RMD160 a3b47a811342d402e1af5075afe7b4ab5166072c SHA1 b662b84341983f2995806215790fe6706ac80b85 SHA256 13366ac81b65ce349a620d43243e28e60a6f54e8d1dad5c316833200bb697e7b +EBUILD fltk-2.0_pre6786-r1.ebuild 2400 RMD160 6a37084f77d5d8d5496429b6e6a76707b8c2492e SHA1 643d2a7ab647e3186b889c96d62b6249d0cf6e1e SHA256 27becac0447e91ca9c73d6ff95b71913c415217596eec4fd6e11daa38127276f +EBUILD fltk-2.0_pre6786.ebuild 2373 RMD160 2cd91764c18c0ea77bf57c4d69e2122f15471404 SHA1 3af653dabf790c9c9516f47065a61e7400eeb2dd SHA256 e848bc4bfc6f2f9acfab8378c661153fa59cdd517bf7248524b5c62c9706f440 +MISC ChangeLog 16534 RMD160 c5b304cc14fd35103b2334d4763e586c05793bbc SHA1 0b0a64a346cf3a178726776bdf619896f3f08116 SHA256 e284d5b1c18f53e557130182cc7c4455df87440156059843b6d83b8a0fdb7f87 MISC metadata.xml 730 RMD160 b71c483e2f90c8328a31e814ef7bf1cb62a75611 SHA1 4e5669b499c22fb4059161a0e8dd62735d460f06 SHA256 5695a1eced035e0f5c8d4160c855f68e85ad3b15978b9bf88d2df16a24e79e82 diff --git a/x11-libs/fltk/fltk-1.1.9-r1.ebuild b/x11-libs/fltk/fltk-1.1.9-r1.ebuild new file mode 100644 index 000000000000..44debc14dcbd --- /dev/null +++ b/x11-libs/fltk/fltk-1.1.9-r1.ebuild @@ -0,0 +1,133 @@ +# Copyright 1999-2009 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Header: /var/cvsroot/gentoo-x86/x11-libs/fltk/fltk-1.1.9-r1.ebuild,v 1.1 2009/07/08 11:34:48 yngwin Exp $ + +EAPI=2 +inherit eutils autotools versionator fdo-mime + +DESCRIPTION="C++ user interface toolkit for X and OpenGL." +HOMEPAGE="http://www.fltk.org" +SRC_URI="mirror://easysw/${PN}/${PV}/${P}-source.tar.bz2" + +KEYWORDS="~amd64 ~x86" +LICENSE="FLTK LGPL-2" + +SLOT="$(get_version_component_range 1-2)" + +IUSE="doc examples games opengl threads xft xinerama" + +RDEPEND="x11-libs/libXext + x11-libs/libICE + x11-libs/libSM + x11-libs/libXt + media-libs/jpeg + media-libs/libpng + sys-libs/zlib + opengl? ( virtual/opengl virtual/glu ) + xinerama? ( x11-libs/libXinerama ) + xft? ( x11-libs/libXft ) + >=sys-libs/glibc-2.10" # glibc-2.10 patch breaks with 2.9, bug 276695 +DEPEND="${RDEPEND} + x11-proto/xextproto + doc? ( app-text/htmldoc ) + xinerama? ( x11-proto/xineramaproto )" + +INCDIR=/usr/include/fltk-${SLOT} +LIBDIR=/usr/$(get_libdir)/fltk-${SLOT} + +src_prepare() { + #epatch "${FILESDIR}"/${P}-fromdebian.patch + epatch "${FILESDIR}"/${P}-desktop.patch + epatch "${FILESDIR}"/${P}-as-needed.patch + # prevent to run twice configure (needs eautoconf), to compile tests, + # remove forced -Os compile + epatch "${FILESDIR}"/${P}-conf-tests.patch + # fix stricter c++ handling in glibc-2.10/gcc-4.4 (bug 270487) + epatch "${FILESDIR}"/${P}-glibc2.10-scandir.patch + epatch "${FILESDIR}"/${P}-consts.patch + # remove forced flags from fltk-config + sed -i \ + -e '/C\(XX\)\?FLAGS=/s:@C\(XX\)\?FLAGS@::' \ + -e '/^LDFLAGS=/d' \ + "${S}/fltk-config.in" || die + # some fixes introduced because slotting + sed -i \ + -e '/RANLIB/s:$(libdir)/\(.*LIBNAME)\):$(libdir)/`basename \1`:g' \ + src/Makefile || die + # docs in proper docdir + sed -i \ + -e "/^docdir/s:fltk:${PF}/html:" \ + makeinclude.in || die + sed -e "s/7/$(get_version_component_range 3)/" \ + "${FILESDIR}"/FLTKConfig.cmake > CMake/FLTKConfig.cmake + eautoconf +} + +src_configure() { + econf \ + --includedir=${INCDIR}\ + --libdir=${LIBDIR} \ + --docdir=/usr/share/doc/${PF}/html \ + --enable-largefile \ + --enable-shared \ + --enable-xdbe \ + $(use_enable opengl gl) \ + $(use_enable threads) \ + $(use_enable xft) \ + $(use_enable xinerama) +} + +src_compile() { + emake || die "emake failed" + if use doc; then + cd "${S}"/documentation + emake alldocs || die "emake doc failed" + fi + if use games; then + cd "${S}"/test + emake blocks checkers sudoku || die "emake games failed" + fi +} + +src_install() { + emake DESTDIR="${D}" install || die "emake install failed" + emake -C fluid \ + DESTDIR="${D}" install-linux || die "emake install fluid failed" + if use doc; then + emake -C documentation \ + DESTDIR="${D}" install || die "emake install doc failed" + fi + local apps="fluid" + if use games; then + emake -C test \ + DESTDIR="${D}" install-linux || die "emake install games failed" + emake -C documentation \ + DESTDIR="${D}" install-linux || die "emake install doc games failed" + apps="${apps} sudoku blocks checkers" + fi + for app in ${apps}; do + dosym /usr/share/icons/hicolor/32x32/apps/${app}.png \ + /usr/share/pixmaps/${app}.png + done + dodoc CHANGES README CREDITS ANNOUNCEMENT + + if use examples; then + insinto /usr/share/doc/${PF}/examples + doins test/*.{h,cxx,fl} test/demo.menu + fi + + insinto /usr/share/cmake/Modules + doins CMake/FLTK*.cmake + + echo "LDPATH=${LIBDIR}" > 99fltk-${SLOT} + echo "FLTK_DOCDIR=/usr/share/doc/${PF}/html" >> 99fltk-${SLOT} + doenvd 99fltk-${SLOT} +} + +pkg_postinst() { + fdo-mime_desktop_database_update +} + +pkg_postrm() { + fdo-mime_desktop_database_update +} diff --git a/x11-libs/fltk/fltk-1.1.9.ebuild b/x11-libs/fltk/fltk-1.1.9.ebuild index b062d68f08b1..e3f3eb23f7e4 100644 --- a/x11-libs/fltk/fltk-1.1.9.ebuild +++ b/x11-libs/fltk/fltk-1.1.9.ebuild @@ -1,6 +1,6 @@ # Copyright 1999-2009 Gentoo Foundation # Distributed under the terms of the GNU General Public License v2 -# $Header: /var/cvsroot/gentoo-x86/x11-libs/fltk/fltk-1.1.9.ebuild,v 1.6 2009/07/05 08:37:00 yngwin Exp $ +# $Header: /var/cvsroot/gentoo-x86/x11-libs/fltk/fltk-1.1.9.ebuild,v 1.7 2009/07/08 11:34:48 yngwin Exp $ EAPI=2 inherit eutils autotools versionator fdo-mime @@ -25,8 +25,8 @@ RDEPEND="x11-libs/libXext sys-libs/zlib opengl? ( virtual/opengl virtual/glu ) xinerama? ( x11-libs/libXinerama ) - xft? ( x11-libs/libXft )" - + xft? ( x11-libs/libXft ) + <sys-libs/glibc-2.10" # glibc-2.10 patch breaks with 2.9, bug 276695 DEPEND="${RDEPEND} x11-proto/xextproto doc? ( app-text/htmldoc ) @@ -42,9 +42,6 @@ src_prepare() { # prevent to run twice configure (needs eautoconf), to compile tests, # remove forced -Os compile epatch "${FILESDIR}"/${P}-conf-tests.patch - # fix stricter c++ handling in glibc-2.10/gcc-4.4 (bug 270487) - epatch "${FILESDIR}"/${P}-glibc2.10-scandir.patch - epatch "${FILESDIR}"/${P}-consts.patch # remove forced flags from fltk-config sed -i \ -e '/C\(XX\)\?FLAGS=/s:@C\(XX\)\?FLAGS@::' \ diff --git a/x11-libs/fltk/fltk-2.0_pre6786-r1.ebuild b/x11-libs/fltk/fltk-2.0_pre6786-r1.ebuild new file mode 100644 index 000000000000..805519095b0f --- /dev/null +++ b/x11-libs/fltk/fltk-2.0_pre6786-r1.ebuild @@ -0,0 +1,84 @@ +# Copyright 1999-2009 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Header: /var/cvsroot/gentoo-x86/x11-libs/fltk/fltk-2.0_pre6786-r1.ebuild,v 1.1 2009/07/08 11:34:48 yngwin Exp $ + +EAPI="2" +inherit multilib autotools flag-o-matic + +MY_P=${P/_pre/.x-r} +DESCRIPTION="C++ user interface toolkit for X and OpenGL" +HOMEPAGE="http://www.fltk.org/" +SRC_URI="mirror://easysw/fltk/snapshots/${MY_P}.tar.bz2" + +KEYWORDS="~amd64 ~x86" +LICENSE="FLTK LGPL-2" +SLOT="2" +IUSE="cairo debug doc +jpeg +png opengl +xft xinerama zlib" + +RDEPEND="x11-libs/libXext + x11-libs/libICE + x11-libs/libSM + x11-libs/libXt + xft? ( x11-libs/libXft ) + png? ( media-libs/libpng ) + jpeg? ( media-libs/jpeg ) + opengl? ( virtual/opengl ) + cairo? ( x11-libs/cairo ) + xinerama? ( x11-libs/libXinerama ) + zlib? ( sys-libs/zlib ) + >=sys-libs/glibc-2.10" # glibc-2.10 patch breaks with 2.9, bug 276695 +DEPEND="${RDEPEND} + x11-proto/xextproto + xinerama? ( x11-proto/xineramaproto ) + cairo? ( dev-util/pkgconfig ) + doc? ( app-doc/doxygen )" + +S="${WORKDIR}/${MY_P}" + +src_prepare() { + epatch "${FILESDIR}"/fltk2-asneeded.patch # bug 255494 + epatch "${FILESDIR}"/fltk2-gcc43.patch + epatch "${FILESDIR}"/fltk2-glibc2.10-scandir.patch # bug 270487 + epatch "${FILESDIR}"/fltk2-ldflags.patch # bug 251233 + sed -i "/STRIP/d" fluid/Makefile # don't pre-strip, bug 246694 + use opengl || epatch "${FILESDIR}"/fltk2-nogl.patch + eautoreconf +} + +src_configure() { + append-flags -fno-strict-aliasing + + CPPFLAGS="${CPPFLAGS} -DFLTK_DOCDIR=\"/usr/share/doc/${PF}\"" \ + econf --enable-shared --enable-threads \ + $(use_enable debug) \ + $(use_enable xft) \ + $(use_enable opengl gl) \ + $(use_enable cairo) \ + $(use_enable jpeg) \ + $(use_enable png) \ + $(use_enable xinerama) \ + $(use_enable zlib) +} + +src_compile() { + emake || die "make failed" + + if use doc; then + make -C documentation || die "make documentation failed" + fi +} + +src_install() { + einstall includedir="${D}/usr/include" libdir="${D}/usr/$(get_libdir)/fltk" + + if use doc; then + emake -C documentation install || die "install documentation failed" + dohtml -r documentation/html/* || die "install html documentation failed" + fi + dodoc CHANGES CREDITS README* TODO + + echo "LDPATH=/usr/$(get_libdir)/fltk" > 99fltk-${SLOT} + echo "FLTK_DOCDIR=/usr/share/doc/${PF}/html" >> 99fltk-${SLOT} + + doenvd 99fltk-${SLOT} || die "installing env.d file failed" +} diff --git a/x11-libs/fltk/fltk-2.0_pre6786.ebuild b/x11-libs/fltk/fltk-2.0_pre6786.ebuild index b93acdfcfc82..0eed5532d567 100644 --- a/x11-libs/fltk/fltk-2.0_pre6786.ebuild +++ b/x11-libs/fltk/fltk-2.0_pre6786.ebuild @@ -1,6 +1,6 @@ # Copyright 1999-2009 Gentoo Foundation # Distributed under the terms of the GNU General Public License v2 -# $Header: /var/cvsroot/gentoo-x86/x11-libs/fltk/fltk-2.0_pre6786.ebuild,v 1.2 2009/07/04 18:38:30 yngwin Exp $ +# $Header: /var/cvsroot/gentoo-x86/x11-libs/fltk/fltk-2.0_pre6786.ebuild,v 1.3 2009/07/08 11:34:48 yngwin Exp $ EAPI="2" inherit multilib autotools flag-o-matic @@ -25,7 +25,8 @@ RDEPEND="x11-libs/libXext opengl? ( virtual/opengl ) cairo? ( x11-libs/cairo ) xinerama? ( x11-libs/libXinerama ) - zlib? ( sys-libs/zlib )" + zlib? ( sys-libs/zlib ) + <sys-libs/glibc-2.10" # glibc-2.10 patch breaks with 2.9, bug 276695 DEPEND="${RDEPEND} x11-proto/xextproto xinerama? ( x11-proto/xineramaproto ) @@ -37,7 +38,6 @@ S="${WORKDIR}/${MY_P}" src_prepare() { epatch "${FILESDIR}"/fltk2-asneeded.patch # bug 255494 epatch "${FILESDIR}"/fltk2-gcc43.patch - epatch "${FILESDIR}"/fltk2-glibc2.10-scandir.patch # bug 270487 epatch "${FILESDIR}"/fltk2-ldflags.patch # bug 251233 sed -i "/STRIP/d" fluid/Makefile # don't pre-strip, bug 246694 use opengl || epatch "${FILESDIR}"/fltk2-nogl.patch |