diff options
author | 2006-07-04 10:33:48 +0000 | |
---|---|---|
committer | 2006-07-04 10:33:48 +0000 | |
commit | 8ced3d94dfa2ae9a15fd180a803bfe3076d92c0c (patch) | |
tree | 9b869a27dae43f201519d0a3e9661190cf222a28 /media-libs | |
parent | dev-util/gengetopt: New ebuild for bug 115541 (diff) | |
download | sunrise-reviewed-8ced3d94dfa2ae9a15fd180a803bfe3076d92c0c.tar.gz sunrise-reviewed-8ced3d94dfa2ae9a15fd180a803bfe3076d92c0c.tar.bz2 sunrise-reviewed-8ced3d94dfa2ae9a15fd180a803bfe3076d92c0c.zip |
media-libs/amanith: New ebuild for bug 115754
svn path=/sunrise/; revision=460
Diffstat (limited to 'media-libs')
-rw-r--r-- | media-libs/amanith/ChangeLog | 7 | ||||
-rw-r--r-- | media-libs/amanith/Manifest | 24 | ||||
-rw-r--r-- | media-libs/amanith/amanith-0.3.ebuild | 86 | ||||
-rw-r--r-- | media-libs/amanith/files/0.3-examples_gcc4.patch | 11 | ||||
-rw-r--r-- | media-libs/amanith/files/0.3-plugins_dep.patch | 66 | ||||
-rw-r--r-- | media-libs/amanith/files/digest-amanith-0.3 | 3 | ||||
-rw-r--r-- | media-libs/amanith/metadata.xml | 5 |
7 files changed, 202 insertions, 0 deletions
diff --git a/media-libs/amanith/ChangeLog b/media-libs/amanith/ChangeLog new file mode 100644 index 000000000..928aca244 --- /dev/null +++ b/media-libs/amanith/ChangeLog @@ -0,0 +1,7 @@ +# ChangeLog for media-libs/amanith +# Copyright 1999-2006 Gentoo Foundation; Distributed under the GPL v2 +# $Header: $ + + 04 Jul 2006; Tiziano Müller <gentoo@dev-zero.ch> ChangeLog: + New ebuild for bug 115754 + diff --git a/media-libs/amanith/Manifest b/media-libs/amanith/Manifest new file mode 100644 index 000000000..e57c83651 --- /dev/null +++ b/media-libs/amanith/Manifest @@ -0,0 +1,24 @@ +AUX 0.3-examples_gcc4.patch 328 RMD160 3ad84dcecb339be492785355faf03ff74bf77edb SHA1 74d6c258d6b1ac003800f7c920b75540f61e25d5 SHA256 7a0f17b9123e20167cd60c6d2308902b3305e8d979e8822c830943691070ade1 +MD5 8582e67cbc086195b04ff7fddaf5f3b2 files/0.3-examples_gcc4.patch 328 +RMD160 3ad84dcecb339be492785355faf03ff74bf77edb files/0.3-examples_gcc4.patch 328 +SHA256 7a0f17b9123e20167cd60c6d2308902b3305e8d979e8822c830943691070ade1 files/0.3-examples_gcc4.patch 328 +AUX 0.3-plugins_dep.patch 2437 RMD160 190b0a1f623374d83cf1bd6ad038d90a8e411131 SHA1 d2f5be9314cb73470ef75744f1c7243177991217 SHA256 610ff4933579822b1d1f3df90e5fc06a5797eb23d0ac99c45b45395c28f7b854 +MD5 78134ad410ea1324ffbb474b43d898b9 files/0.3-plugins_dep.patch 2437 +RMD160 190b0a1f623374d83cf1bd6ad038d90a8e411131 files/0.3-plugins_dep.patch 2437 +SHA256 610ff4933579822b1d1f3df90e5fc06a5797eb23d0ac99c45b45395c28f7b854 files/0.3-plugins_dep.patch 2437 +DIST amanith_03.tar.gz 7688202 RMD160 6bfe1f54bbf3ff70b299c5ebf9d2d13cfcfaa6fd SHA1 7bc3ab197a227d3dabf1902e420cba36e0a4e903 SHA256 2e92dde6e56abef0f5146fd61ad0310e176d25578673353afe4def99c6bdaa1a +EBUILD amanith-0.3.ebuild 1871 RMD160 a6af2ef3de8be0e250cddd53087d665c010e955a SHA1 f0e72d065e0d252031f2aa04d20f511204b600cc SHA256 9c0cb4f3224692f474ba3a55c2316edf4d1c570edb91570b06520258697de815 +MD5 c2333f3879c78655a5932b1cd07b435b amanith-0.3.ebuild 1871 +RMD160 a6af2ef3de8be0e250cddd53087d665c010e955a amanith-0.3.ebuild 1871 +SHA256 9c0cb4f3224692f474ba3a55c2316edf4d1c570edb91570b06520258697de815 amanith-0.3.ebuild 1871 +MISC ChangeLog 211 RMD160 6070eb3c4a3fca4c2a988e050f3f85d417fa31e8 SHA1 b5dbbc136e0eeb566a6fc1adb17939cc3e7c08e2 SHA256 de14a083777d029416b0c5c9dc1b2822ae5a4610bc5b587ce69f609b5fe437f1 +MD5 229f8fcfb9aa29b04ab73ad71301b3e6 ChangeLog 211 +RMD160 6070eb3c4a3fca4c2a988e050f3f85d417fa31e8 ChangeLog 211 +SHA256 de14a083777d029416b0c5c9dc1b2822ae5a4610bc5b587ce69f609b5fe437f1 ChangeLog 211 +MISC metadata.xml 170 RMD160 645927a396fdc21cdeb089fe42c5397332420ea6 SHA1 ac7f48a14fec325926f9ce1be8fbf1f311b4f2e4 SHA256 d797a2ec6f9dc516c9f9c1a758ee87ad3e8c43101b5dc76c2f872d5bd4639b42 +MD5 1e678929a9fec6632e227bdf2262e9a1 metadata.xml 170 +RMD160 645927a396fdc21cdeb089fe42c5397332420ea6 metadata.xml 170 +SHA256 d797a2ec6f9dc516c9f9c1a758ee87ad3e8c43101b5dc76c2f872d5bd4639b42 metadata.xml 170 +MD5 ee09de69ebe3f6d703c2c12470466ce6 files/digest-amanith-0.3 235 +RMD160 4b314d040eb2aeadcf3a963116c8f54645e8084f files/digest-amanith-0.3 235 +SHA256 71e9c87249bc70ca3d58f13667be9195dfb3d7e12a7bc13e64bbadcff01f2dcf files/digest-amanith-0.3 235 diff --git a/media-libs/amanith/amanith-0.3.ebuild b/media-libs/amanith/amanith-0.3.ebuild new file mode 100644 index 000000000..ffe4a57da --- /dev/null +++ b/media-libs/amanith/amanith-0.3.ebuild @@ -0,0 +1,86 @@ +# Copyright 1999-2006 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Header: $ + +inherit eutils + +DESCRIPTION="Crossplatform & Opensource C++ Vector Graphic Framework" +HOMEPAGE="http://www.amanith.org/blog/index.php" +SRC_URI="http://www.amanith.org/download/files/${PN}_${PV/./}.tar.gz" + +LICENSE="QPL" +SLOT="0" +KEYWORDS="~x86" +IUSE="examples qt4" + + +DEPEND=">=media-libs/freetype-2.1.10 + >=media-libs/jpeg-6b + >=media-libs/libpng-1.2.10 + >=sys-libs/zlib-1.2.3 + qt4? ( >=x11-libs/qt-4.1.0 ) + !qt4? ( =x11-libs/qt-3* )" +RDEPEND="${DEPEND}" + +S="${WORKDIR}/${PN}" + +src_unpack() { + unpack ${A} + + epatch "${FILESDIR}/${PV}-plugins_dep.patch" + epatch "${FILESDIR}/${PV}-examples_gcc4.patch" + + # We don't have to build the 3rd-party libs, they're provided by the deps + rm -rf "${S}/3rdpart" + sed -i -e 's/3rdpart//' "${S}/amanith.pro" + + if use qt4; then + sed -i -e 's/# DEFINES += USE_QT4/DEFINES += USE_QT4/' "${S}/config/settings.conf" + fi + + if ! use examples; then + sed -i -e 's/examples//' "${S}/amanith.pro" + fi + +} + +src_compile() { + cd "${S}" + export AMANITHDIR="${S}" + if ! use qt4; then + export QTDIR="/usr/qt/3" + PATH="${QTDIR}/bin:${PATH}" + fi + qmake || die "qmake failed" + emake || die "emake failed" +} + +src_install() { + dolib.so lib/*.so* + dolib.so plugins/*.so* + + dodoc CHANGELOG FAQ README + insinto "/usr/share/doc/${PF}" + doins "doc/amanith.chm" + + if use examples; then + insinto "/usr/share/${PN}" + + # remove the object files + find ./examples -iname "*.o" -delete + + doins -r examples + # and set the executable bit for the demos (removed by doins), + # note: do not use 'cp -r' since every file has executable bit set + for file in $(find "${D}/usr/share/${PN}/examples" -print); do + if [[ -n $(readelf -s "${file}" 2>/dev/null) ]]; then + chmod a+x ${file}; + fi + done + + + doins -r data + doins -r config + fi + +} diff --git a/media-libs/amanith/files/0.3-examples_gcc4.patch b/media-libs/amanith/files/0.3-examples_gcc4.patch new file mode 100644 index 000000000..e4d1296ba --- /dev/null +++ b/media-libs/amanith/files/0.3-examples_gcc4.patch @@ -0,0 +1,11 @@ +--- amanith/examples/opengl/vectorizer/drawer.h 2006-01-26 10:18:44.000000000 +0100 ++++ amanith.new/examples/opengl/vectorizer/drawer.h 2006-07-03 23:56:36.000000000 +0200 +@@ -71,7 +71,7 @@ + #endif + // destructor + ~QGLWidgetTest(); +- void QGLWidgetTest::timerEvent(QTimerEvent *e); ++ void timerEvent(QTimerEvent *e);
+ }; + + diff --git a/media-libs/amanith/files/0.3-plugins_dep.patch b/media-libs/amanith/files/0.3-plugins_dep.patch new file mode 100644 index 000000000..4e751e960 --- /dev/null +++ b/media-libs/amanith/files/0.3-plugins_dep.patch @@ -0,0 +1,66 @@ +diff -Naurb amanith/plugins/fonts/build.conf amanith.new/plugins/fonts/build.conf +--- amanith/plugins/fonts/build.conf 2005-09-26 10:18:52.000000000 +0200 ++++ amanith.new/plugins/fonts/build.conf 2006-07-03 23:23:23.000000000 +0200 +@@ -38,9 +38,9 @@ + # take into account compilation mode (debug or release)
+ DEFINES -= FT_DEBUG_LEVEL_ERROR FT_DEBUG_LEVEL_TRACE
+
+-INCLUDEPATH += $$(AMANITHDIR)/3rdpart/freetype2/include
++INCLUDEPATH += /usr/include/freetype2
+
+-unix: LIBS += $$(AMANITHDIR)/lib/libfreetype2.a $$(AMANITHDIR)/lib/libzlib.a
++unix: LIBS += -L/usr/lib -lfreetype -lz
+ win32: {
+
+ !contains(DEFINES, WIN32_MINGW) {
+diff -Naurb amanith/plugins/jpeg/build.conf amanith.new/plugins/jpeg/build.conf +--- amanith/plugins/jpeg/build.conf 2005-09-26 10:19:04.000000000 +0200 ++++ amanith.new/plugins/jpeg/build.conf 2006-07-03 23:20:10.000000000 +0200 +@@ -25,7 +25,7 @@ + }
+ }
+
+-unix: LIBS += $$(AMANITHDIR)/lib/libjpeg.a
++unix: LIBS += -L/usr/lib -ljpeg
+ win32: {
+
+ !contains(DEFINES, WIN32_MINGW) {
+diff -Naurb amanith/plugins/jpeg/gjpegimpexp.cpp amanith.new/plugins/jpeg/gjpegimpexp.cpp +--- amanith/plugins/jpeg/gjpegimpexp.cpp 2006-01-26 10:18:45.000000000 +0100 ++++ amanith.new/plugins/jpeg/gjpegimpexp.cpp 2006-07-03 23:11:25.000000000 +0200 +@@ -36,7 +36,7 @@ + #include <csetjmp>
+
+ G_EXTERN_C { +- #include "../../3rdpart/libjpeg/jpeglib.h" ++ #include <jpeglib.h>
+ };
+
+ /**************************************************************************** +diff -Naurb amanith/plugins/png/build.conf amanith.new/plugins/png/build.conf +--- amanith/plugins/png/build.conf 2005-09-26 10:19:14.000000000 +0200 ++++ amanith.new/plugins/png/build.conf 2006-07-03 23:21:49.000000000 +0200 +@@ -25,9 +25,9 @@ + }
+ }
+
+-INCLUDEPATH += $$(AMANITHDIR)/3rdpart/zlib
++INCLUDEPATH +=
+
+-unix: LIBS += $$(AMANITHDIR)/lib/libpng.a $$(AMANITHDIR)/lib/libzlib.a
++unix: LIBS += -L/usr/lib -lpng -lz
+ win32: {
+
+ !contains(DEFINES, WIN32_MINGW) {
+diff -Naurb amanith/plugins/png/gpngimpexp.cpp amanith.new/plugins/png/gpngimpexp.cpp +--- amanith/plugins/png/gpngimpexp.cpp 2006-01-26 10:18:45.000000000 +0100 ++++ amanith.new/plugins/png/gpngimpexp.cpp 2006-07-03 23:12:32.000000000 +0200 +@@ -35,7 +35,7 @@ + //#include <csetjmp>
+
+ G_EXTERN_C { +- #include "../../3rdpart/libpng/png.h" ++ #include <libpng12/png.h>
+ };
+
+ /**************************************************************************** diff --git a/media-libs/amanith/files/digest-amanith-0.3 b/media-libs/amanith/files/digest-amanith-0.3 new file mode 100644 index 000000000..0b51f88b6 --- /dev/null +++ b/media-libs/amanith/files/digest-amanith-0.3 @@ -0,0 +1,3 @@ +MD5 392e79d36cc2d57921c7fefacbc4d4a3 amanith_03.tar.gz 7688202 +RMD160 6bfe1f54bbf3ff70b299c5ebf9d2d13cfcfaa6fd amanith_03.tar.gz 7688202 +SHA256 2e92dde6e56abef0f5146fd61ad0310e176d25578673353afe4def99c6bdaa1a amanith_03.tar.gz 7688202 diff --git a/media-libs/amanith/metadata.xml b/media-libs/amanith/metadata.xml new file mode 100644 index 000000000..7e3286984 --- /dev/null +++ b/media-libs/amanith/metadata.xml @@ -0,0 +1,5 @@ +<?xml version="1.0" encoding="UTF-8"?> +<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd"> +<pkgmetadata> +<herd>maintainer-wanted</herd> +</pkgmetadata> |