diff options
author | Christoph Brill <egore911@egore911.de> | 2011-11-12 16:50:51 +0100 |
---|---|---|
committer | Christoph Brill <egore911@egore911.de> | 2011-11-12 16:50:51 +0100 |
commit | 0c3cbc2a62d96b617ca9ff4e09b1deb05decdf13 (patch) | |
tree | 989b2a577daca08dab58d1a57ca1c3d2d1caac6d | |
parent | 1c413150742d0b389f905097f310080d5c6c1f6a (diff) |
+leocad-0.75.2.ebuild, +files/leocad-0.75.2-libpng15.patch, +files/leocad.png
Initial ebuild written by me
-rw-r--r-- | media-gfx/leocad/ChangeLog | 10 | ||||
-rw-r--r-- | media-gfx/leocad/Manifest | 7 | ||||
-rw-r--r-- | media-gfx/leocad/files/leocad-0.75.2-libpng15.patch | 98 | ||||
-rw-r--r-- | media-gfx/leocad/files/leocad.png | bin | 0 -> 258 bytes | |||
-rw-r--r-- | media-gfx/leocad/leocad-0.75.2.ebuild | 52 | ||||
-rw-r--r-- | media-gfx/leocad/metadata.xml | 7 |
6 files changed, 174 insertions, 0 deletions
diff --git a/media-gfx/leocad/ChangeLog b/media-gfx/leocad/ChangeLog new file mode 100644 index 0000000..647d75d --- /dev/null +++ b/media-gfx/leocad/ChangeLog @@ -0,0 +1,10 @@ +# ChangeLog for media-gfx/leocad +# Copyright 1999-2011 Gentoo Foundation; Distributed under the GPL v2 +# $Header: $ + +*leocad-0.75.2 (12 Nov 2011) + + 12 Nov 2011; Christoph Brill <egore911@egore911.de> +leocad-0.75.2.ebuild, + +files/leocad-0.75.2-libpng15.patch, +files/leocad.png, +metadata.xml: + Initial ebuild written by me + diff --git a/media-gfx/leocad/Manifest b/media-gfx/leocad/Manifest new file mode 100644 index 0000000..ba723a4 --- /dev/null +++ b/media-gfx/leocad/Manifest @@ -0,0 +1,7 @@ +AUX leocad-0.75.2-libpng15.patch 3513 RMD160 aa4d5b44aacb5ee3daf279dd55d617e17c199207 SHA1 57f68f7ed8e1976c1d3a7681e3287fc1e7856452 SHA256 ee5790174cbe88fec61d5d5f1632affa11f1258b7ee05183d513de350561b13e +AUX leocad.png 258 RMD160 2c7fbcae730a3025da88d51a180066f13c68ea1f SHA1 1e51228d73b90c3d4a274177722eb0f0b8ec995d SHA256 c8e3433e941df5f4bc36671670c827247b25756799b1c1dda5a20b90470c2ef6 +DIST leocad-0.75.2-src.tgz 1203447 RMD160 1107a5efbadc9549d5da08b83b036fb3f3860ea2 SHA1 892d692bf61f6a1599d497d3e5db1ada8c80da2d SHA256 f4e45699dd63fea7b5a9bf2027177372db61075f2acf1d7856f8b02b03124643 +DIST pieces-4806.zip 31521783 RMD160 b5f0a4669d799fd52447cebd9a04f06f0c9cf59f SHA1 b8c6bd91469aea6f643ca8274954f0a60eca1ede SHA256 b0be7870a0fad73de03c38181e655c7e8cde568d2a3efb48e1da5adf253eb47f +EBUILD leocad-0.75.2.ebuild 1084 RMD160 762d932f18feaf21130b9678be1dbf80ffbf5250 SHA1 aef5549ef20e319fd6f7c96152f484943879bde3 SHA256 1d24aca4af5bea3ba6b24d1e0ae70fa4ed9a4356146a90b994b2745805cd96f2 +MISC ChangeLog 329 RMD160 21ea6a181431aa4aea157b8058a79453f5ce9567 SHA1 da3f9f3637549cf4128677d045cb8affdf9d9c11 SHA256 b66173e96594e7f2530dfbce42179791365d28813872396d80a14f1cfc88a4a9 +MISC metadata.xml 204 RMD160 19671a561cc119505a06464a35a5096b484471c2 SHA1 b00abe788b4847cd2bfcdb6e4e207ed38949d475 SHA256 e808030aad62dfe3e81350c1c879870c3d406c50e908ddc3f521480aec65e8d5 diff --git a/media-gfx/leocad/files/leocad-0.75.2-libpng15.patch b/media-gfx/leocad/files/leocad-0.75.2-libpng15.patch new file mode 100644 index 0000000..97efb7b --- /dev/null +++ b/media-gfx/leocad/files/leocad-0.75.2-libpng15.patch @@ -0,0 +1,98 @@ +--- common/im_png.cpp.orig 2010-07-12 07:55:39.000000000 +0200 ++++ common/im_png.cpp 2011-11-12 16:14:07.777810736 +0100 +@@ -21,7 +21,11 @@ + + // Read() returns 0 on error, so it is OK to store this in a png_size_t + // instead of an int, which is what Read() actually returns. ++#if defined(PNG_LIBPNG_VER_MAJOR) && defined(PNG_LIBPNG_VER_MINOR) && (PNG_LIBPNG_VER_MAJOR > 1 || (PNG_LIBPNG_VER_MAJOR == 1 && PNG_LIBPNG_VER_MINOR >= 5)) ++ check = (png_size_t)((File*)png_get_io_ptr(png_ptr))->Read (data, length); ++#else + check = (png_size_t)((File*)png_ptr->io_ptr)->Read (data, length); ++#endif + + if (check != length) + png_error(png_ptr, "Read Error"); +@@ -61,7 +65,11 @@ + return false; // out of memory + } + ++#if defined(PNG_LIBPNG_VER_MAJOR) && defined(PNG_LIBPNG_VER_MINOR) && (PNG_LIBPNG_VER_MAJOR > 1 || (PNG_LIBPNG_VER_MAJOR == 1 && PNG_LIBPNG_VER_MINOR >= 5)) ++ if (setjmp(png_jmpbuf(png_ptr))) ++#else + if (setjmp(png_ptr->jmpbuf)) ++#endif + { + png_destroy_read_struct(&png_ptr, &info_ptr, NULL); + return false; +@@ -75,7 +83,11 @@ + png_get_IHDR(png_ptr, info_ptr, &width, &height, &bit_depth, &color_type, + NULL, NULL, NULL); + ++#if defined(PNG_LIBPNG_VER_MAJOR) && defined(PNG_LIBPNG_VER_MINOR) && (PNG_LIBPNG_VER_MAJOR > 1 || (PNG_LIBPNG_VER_MAJOR == 1 && PNG_LIBPNG_VER_MINOR >= 5)) ++ if (setjmp(png_jmpbuf(png_ptr))) ++#else + if (setjmp(png_ptr->jmpbuf)) ++#endif + { + png_destroy_read_struct(&png_ptr, &info_ptr, NULL); + return false; +@@ -85,7 +97,11 @@ + { + png_get_bKGD(png_ptr, info_ptr, &pBackground); + ++#if defined(PNG_LIBPNG_VER_MAJOR) && defined(PNG_LIBPNG_VER_MINOR) && (PNG_LIBPNG_VER_MAJOR > 1 || (PNG_LIBPNG_VER_MAJOR == 1 && PNG_LIBPNG_VER_MINOR >= 5)) ++ if (setjmp (png_jmpbuf(png_ptr))) ++#else + if (setjmp (png_ptr->jmpbuf)) ++#endif + { + png_destroy_read_struct(&png_ptr, &info_ptr, NULL); + return false; +@@ -117,7 +133,11 @@ + } + else + { ++#if defined(PNG_LIBPNG_VER_MAJOR) && defined(PNG_LIBPNG_VER_MINOR) && (PNG_LIBPNG_VER_MAJOR > 1 || (PNG_LIBPNG_VER_MAJOR == 1 && PNG_LIBPNG_VER_MINOR >= 5)) ++ if (setjmp (png_jmpbuf(png_ptr))) ++#else + if (setjmp (png_ptr->jmpbuf)) ++#endif + { + png_destroy_read_struct(&png_ptr, &info_ptr, NULL); + return false; +@@ -263,7 +283,11 @@ + { + png_uint_32 check; + ++#if defined(PNG_LIBPNG_VER_MAJOR) && defined(PNG_LIBPNG_VER_MINOR) && (PNG_LIBPNG_VER_MAJOR > 1 || (PNG_LIBPNG_VER_MAJOR == 1 && PNG_LIBPNG_VER_MINOR >= 5)) ++ check = ((File*)png_get_io_ptr(png_ptr))->Write (data, length); ++#else + check = ((File*)png_ptr->io_ptr)->Write (data, length); ++#endif + if (check != length) + { + png_error(png_ptr, "Write Error"); +@@ -272,7 +296,11 @@ + + static void user_flush_fn (png_structp png_ptr) + { ++#if defined(PNG_LIBPNG_VER_MAJOR) && defined(PNG_LIBPNG_VER_MINOR) && (PNG_LIBPNG_VER_MAJOR > 1 || (PNG_LIBPNG_VER_MAJOR == 1 && PNG_LIBPNG_VER_MINOR >= 5)) ++ ((File*)png_get_io_ptr(png_ptr))->Flush (); ++#else + ((File*)png_ptr->io_ptr)->Flush (); ++#endif + } + + bool Image::SavePNG (File& file, bool transparent, bool interlaced, unsigned char* background) const +@@ -295,7 +323,11 @@ + return false; + } + ++#if defined(PNG_LIBPNG_VER_MAJOR) && defined(PNG_LIBPNG_VER_MINOR) && (PNG_LIBPNG_VER_MAJOR > 1 || (PNG_LIBPNG_VER_MAJOR == 1 && PNG_LIBPNG_VER_MINOR >= 5)) ++ if (setjmp(png_jmpbuf(png_ptr))) ++#else + if (setjmp(png_ptr->jmpbuf)) ++#endif + { + png_destroy_write_struct(&png_ptr, (png_infopp)NULL); + return false; diff --git a/media-gfx/leocad/files/leocad.png b/media-gfx/leocad/files/leocad.png Binary files differnew file mode 100644 index 0000000..1791ee2 --- /dev/null +++ b/media-gfx/leocad/files/leocad.png diff --git a/media-gfx/leocad/leocad-0.75.2.ebuild b/media-gfx/leocad/leocad-0.75.2.ebuild new file mode 100644 index 0000000..7e33882 --- /dev/null +++ b/media-gfx/leocad/leocad-0.75.2.ebuild @@ -0,0 +1,52 @@ +# Copyright 1999-2011 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Header: $ + +EAPI=3 + +inherit versionator + +MY_PV="$(get_version_component_range 1-2)" +PIECES_VERSION="4806" + +DESCRIPTION="a CAD program that can be used to create virtual LEGO models" +HOMEPAGE="http://www.leocad.org/" +SRC_URI="http://leocad.googlecode.com/files/${P}-src.tgz + http://leocad.googlecode.com/files/pieces-${PIECES_VERSION}.zip" + +LICENSE="GPL-2" +SLOT="0" +KEYWORDS="~amd64" +IUSE="" + +RDEPEND="virtual/jpeg + sys-libs/zlib + media-libs/libpng + x11-libs/gtk+ + virtual/opengl" +DEPEND="${RDEPEND} + dev-util/pkgconfig" + +S="${WORKDIR}"/${PN}-${MY_PV} + +src_prepare() { + epatch "${FILESDIR}"/${P}-libpng15.patch +} + +src_configure() { + make PREFIX=/usr config || die "make config failed" +} + +src_install() { + dobin bin/${PN} + doman docs/leocad.1 + dodoc docs/*.txt + + insinto /usr/share/pixmaps + doins "${FILESDIR}"/leocad.png + make_desktop_entry leocad "LeoCAD" leocad Graphics + + cd .. + insinto /usr/share/${PN} + doins pieces.bin pieces.idx sysfont.txf textures.bin textures.idx +} diff --git a/media-gfx/leocad/metadata.xml b/media-gfx/leocad/metadata.xml new file mode 100644 index 0000000..1188c23 --- /dev/null +++ b/media-gfx/leocad/metadata.xml @@ -0,0 +1,7 @@ +<?xml version="1.0" encoding="UTF-8"?> +<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd"> +<pkgmetadata> +<maintainer> + <email>egore911@egore911.de</email> +</maintainer> +</pkgmetadata> |