aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorFrançois Bissey <f.r.bissey@massey.ac.nz>2010-07-09 22:13:39 +1200
committerFrançois Bissey <f.r.bissey@massey.ac.nz>2010-07-09 22:13:39 +1200
commit333407bd66fa5ad3c69b7618da550ed6e2c4ccbe (patch)
tree5d3189a76230f9a3d8216a2a5cb640c8f4a31701 /x11-libs
parent[sci-chemistry/gromacs] fix for bug #301854 (diff)
downloadsci-333407bd66fa5ad3c69b7618da550ed6e2c4ccbe.tar.gz
sci-333407bd66fa5ad3c69b7618da550ed6e2c4ccbe.tar.bz2
sci-333407bd66fa5ad3c69b7618da550ed6e2c4ccbe.zip
Import gl2ps with automagic dependencies fix.
Diffstat (limited to 'x11-libs')
-rw-r--r--x11-libs/gl2ps/ChangeLog40
-rw-r--r--x11-libs/gl2ps/Manifest5
-rw-r--r--x11-libs/gl2ps/files/gl2ps-1.3.5-CMakeLists.patch49
-rw-r--r--x11-libs/gl2ps/gl2ps-1.3.5-r1.ebuild46
-rw-r--r--x11-libs/gl2ps/metadata.xml14
5 files changed, 154 insertions, 0 deletions
diff --git a/x11-libs/gl2ps/ChangeLog b/x11-libs/gl2ps/ChangeLog
new file mode 100644
index 000000000..b796ffe0b
--- /dev/null
+++ b/x11-libs/gl2ps/ChangeLog
@@ -0,0 +1,40 @@
+# ChangeLog for x11-libs/gl2ps
+# Copyright 1999-2010 Gentoo Foundation; Distributed under the GPL v2
+# $Header: /var/cvsroot/gentoo-x86/x11-libs/gl2ps/ChangeLog,v 1.7 2010/02/20 17:24:28 armin76 Exp $
+
+*gl2ps-1.3.5-r1 (09 Jul 2010)
+
+ 09 Jul 2010; François Bissey <f.r.bissey@massey.ac.nz>
+ +gl2ps-1.3.5-r1.ebuild, +files/gl2ps-1.3.5-CMakeLists.patch,
+ +metadata.xml:
+ Import in the overlay. Deal with automagic dependencies. Change EAPI to 3
+ as the original uses EPREFIX.
+
+ 20 Feb 2010; Raúl Porcel <armin76@gentoo.org> gl2ps-1.3.5.ebuild:
+ Add ~alpha wrt #303675
+
+ 18 Jan 2010; Fabian Groffen <grobian@gentoo.org> gl2ps-1.3.5.ebuild:
+ Work around CMake nuisance, make sure we get a correct install_name on
+ Darwin
+
+ 15 Jan 2010; Christian Faulhammer <fauli@gentoo.org> gl2ps-1.3.5.ebuild:
+ Transfer Prefix keywords
+
+ 12 Jan 2010; Christian Faulhammer <fauli@gentoo.org> gl2ps-1.3.5.ebuild:
+ stable x86, bug 300267
+
+ 03 Jan 2010; Samuli Suominen <ssuominen@gentoo.org> gl2ps-1.3.5.ebuild:
+ amd64 stable wrt #299365
+
+*gl2ps-1.3.5 (01 Jan 2010)
+
+ 01 Jan 2010; Samuli Suominen <ssuominen@gentoo.org> +gl2ps-1.3.5.ebuild,
+ +files/gl2ps-1.3.5-CMakeLists.patch:
+ Version bump.
+
+*gl2ps-1.3.3 (07 Apr 2009)
+
+ 07 Apr 2009; Sébastien Fabbro <bicatali@gentoo.org> +metadata.xml,
+ +gl2ps-1.3.3.ebuild:
+ Initial import
+
diff --git a/x11-libs/gl2ps/Manifest b/x11-libs/gl2ps/Manifest
new file mode 100644
index 000000000..5c0a1718c
--- /dev/null
+++ b/x11-libs/gl2ps/Manifest
@@ -0,0 +1,5 @@
+AUX gl2ps-1.3.5-CMakeLists.patch 1704 RMD160 1ca405e3616949454bc8626d1d25bc883055689a SHA1 1ca9cc9ab8325d0f2cf0a952fda18ec07715ddc8 SHA256 bbd0327743ddc3002829c5c8e944526f8db761e6e5471fc800b94ecebd1d5b23
+DIST gl2ps-1.3.5.tgz 212944 RMD160 bced0f28d0912670ee09c847a47e87c6787e94c3 SHA1 cf2c5220662581f48ef59173c64f41dc47011c6b SHA256 394b5af08a36f6d829a9fdde29d9938ee139245a2b1b2c815a268627e22cc4b0
+EBUILD gl2ps-1.3.5-r1.ebuild 1159 RMD160 d03b3b2d70ff9034cdac19c0ec66dcb3fe8b0d0c SHA1 a3acdd32d8330335482221fe4037528a2c60d678 SHA256 c9fb206aa231378f96120cf3a2d75f2a65b7b38a846e3c7bc83dadfc8e7e4289
+MISC ChangeLog 1333 RMD160 bcfcb7e662921eb97a7f1caf59c229eb09aa63af SHA1 4f6c4d5be6b15a60eeae3775b92ea97aee2c51dd SHA256 2b4f59da3d0c9c3954390a84dd476a83470e8e87c295338df3e480a3e95b5d56
+MISC metadata.xml 623 RMD160 3009127c2064b068ec7ac0e024dea6e3f415126e SHA1 ebdc623441bec64dbefcc590c56069d5c4de5643 SHA256 48657d240db2cb13495a31f2b7c7b598143c30d3b6c8bcbf17f4086a324de1f5
diff --git a/x11-libs/gl2ps/files/gl2ps-1.3.5-CMakeLists.patch b/x11-libs/gl2ps/files/gl2ps-1.3.5-CMakeLists.patch
new file mode 100644
index 000000000..3bc1b7d95
--- /dev/null
+++ b/x11-libs/gl2ps/files/gl2ps-1.3.5-CMakeLists.patch
@@ -0,0 +1,49 @@
+--- CMakeLists.txt.orig 2010-07-02 23:31:56.663962398 +1200
++++ CMakeLists.txt 2010-07-09 21:49:29.056895751 +1200
+@@ -46,6 +46,7 @@
+
+ option(ENABLE_ZLIB "Enable compression using ZLIB" ON)
+ option(ENABLE_PNG "Enable PNG support" ON)
++option(ENABLE_DOC "Build the PDF documentation" OFF)
+
+ set(GL2PS_MAJOR_VERSION 1)
+ set(GL2PS_MINOR_VERSION 3)
+@@ -113,19 +114,18 @@
+ set_target_properties(shared PROPERTIES COMPILE_FLAGS "-DGL2PSDLL -DGL2PSDLL_EXPORTS")
+ endif(MSVC)
+
+- install(TARGETS lib shared DESTINATION lib)
++ install(TARGETS lib shared DESTINATION lib${LIB_SUFFIX})
+ endif(OPENGL_FOUND)
+
+ if(WIN32)
+ set(GL2PS_DOC .)
+ else(WIN32)
+- set(GL2PS_DOC share/doc/gl2ps)
++ set(GL2PS_DOC share/doc/gl2ps-${GL2PS_VERSION})
+ endif(WIN32)
+
+ install(FILES gl2ps.h DESTINATION include)
+ install(FILES ${CMAKE_SOURCE_DIR}/README.txt DESTINATION ${GL2PS_DOC})
+-install(FILES ${CMAKE_SOURCE_DIR}/COPYING.LGPL DESTINATION ${GL2PS_DOC})
+-install(FILES ${CMAKE_SOURCE_DIR}/COPYING.GL2PS DESTINATION ${GL2PS_DOC})
++install(FILES ${CMAKE_SOURCE_DIR}/TODO.txt DESTINATION ${GL2PS_DOC})
+ install(FILES ${CMAKE_SOURCE_DIR}/gl2psTest.c DESTINATION ${GL2PS_DOC})
+ install(FILES ${CMAKE_SOURCE_DIR}/gl2psTestSimple.c DESTINATION ${GL2PS_DOC})
+
+@@ -136,6 +136,7 @@
+ target_link_libraries(gl2psTestSimple lib ${EXTERNAL_LIBRARIES})
+ endif(GLUT_FOUND)
+
++if(ENABLE_DOC)
+ find_package(LATEX)
+ if(PDFLATEX_COMPILER)
+ add_custom_command(OUTPUT gl2ps.pdf DEPENDS gl2ps.tex
+@@ -154,6 +155,7 @@
+ add_custom_target(html DEPENDS gl2ps.html)
+ endif(TTH)
+ endif(PDFLATEX_COMPILER)
++endif(ENABLE_DOC)
+
+ set(CPACK_PACKAGE_VENDOR "Christophe Geuzaine")
+ set(CPACK_PACKAGE_VERSION_MAJOR ${GL2PS_MAJOR_VERSION})
diff --git a/x11-libs/gl2ps/gl2ps-1.3.5-r1.ebuild b/x11-libs/gl2ps/gl2ps-1.3.5-r1.ebuild
new file mode 100644
index 000000000..b5a87ae11
--- /dev/null
+++ b/x11-libs/gl2ps/gl2ps-1.3.5-r1.ebuild
@@ -0,0 +1,46 @@
+# Copyright 1999-2010 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Header: $
+
+EAPI="3"
+inherit cmake-utils multilib
+
+DESCRIPTION="OpenGL to PostScript printing library"
+HOMEPAGE="http://www.geuz.org/gl2ps/"
+SRC_URI="http://geuz.org/${PN}/src/${P}.tgz"
+
+LICENSE="LGPL-2"
+SLOT="0"
+KEYWORDS="~alpha ~amd64 ~ppc ~ppc64 ~x86 ~amd64-linux ~x86-linux ~ppc-macos ~x86-macos"
+IUSE="png zlib doc"
+
+DEPEND="virtual/glut
+ png? ( media-libs/libpng )
+ zlib? ( sys-libs/zlib )
+ doc? ( dev-texlive/texlive-latex
+ dev-tex/tth )"
+
+S=${WORKDIR}/${P}-source
+
+PATCHES=( "${FILESDIR}/${P}-CMakeLists.patch" )
+
+src_configure() {
+ mycmakeargs="${mycmakeargs}
+ $(cmake-utils_use_has png PNG)
+ $(cmake-utils_use_has zlib ZLIB)
+ $(cmake-utils_use_has doc DOC)"
+ cmake-utils_src_configure
+}
+
+src_install() {
+ cmake-utils_src_install
+ prepalldocs
+
+ if [[ ${CHOST} == *-darwin* ]] ; then
+ # CMake produces an invalid dylib here, but I have no clue how to fix it
+ # hmm, it's also unversioned :(
+ install_name_tool \
+ -id "${EPREFIX}"/usr/$(get_libdir)/libgl2ps.dylib \
+ "${D%/}${EPREFIX}"/usr/$(get_libdir)/libgl2ps.dylib || die
+ fi
+}
diff --git a/x11-libs/gl2ps/metadata.xml b/x11-libs/gl2ps/metadata.xml
new file mode 100644
index 000000000..a9170dc7a
--- /dev/null
+++ b/x11-libs/gl2ps/metadata.xml
@@ -0,0 +1,14 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+<herd>sci</herd>
+<longdescription lang="en">
+ GL2PS is a C library providing high quality vector output for any
+ OpenGL application. The main difference between GL2PS and other
+ similar libraries is the use of sorting algorithms
+ capable of handling intersecting and stretched polygons, as well as
+ non manifold objects. GL2PS provides advanced smooth shading and
+ text rendering, culling of invisible primitives, mixed vector/bitmap
+ output, and much more.
+</longdescription>
+</pkgmetadata>