diff options
author | Justin Lecher <jlec@gentoo.org> | 2012-12-06 14:08:46 +0000 |
---|---|---|
committer | Justin Lecher <jlec@gentoo.org> | 2012-12-06 14:08:46 +0000 |
commit | 154db4a1d009e9be694388b054dbb1a7162f969a (patch) | |
tree | 0d1afdcb102dac2b4460e9d7e84417132e70fdaa /x11-libs/gl2ps | |
parent | app-benchmarks/i7z: Drop old (diff) | |
download | gentoo-2-154db4a1d009e9be694388b054dbb1a7162f969a.tar.gz gentoo-2-154db4a1d009e9be694388b054dbb1a7162f969a.tar.bz2 gentoo-2-154db4a1d009e9be694388b054dbb1a7162f969a.zip |
x11-libs/gl2ps: Version Bump
(Portage version: 2.2.0_alpha144/cvs/Linux x86_64, signed Manifest commit with key 70EB7916)
Diffstat (limited to 'x11-libs/gl2ps')
-rw-r--r-- | x11-libs/gl2ps/ChangeLog | 8 | ||||
-rw-r--r-- | x11-libs/gl2ps/files/gl2ps-1.3.8-cmake.patch | 74 | ||||
-rw-r--r-- | x11-libs/gl2ps/gl2ps-1.3.8.ebuild | 49 |
3 files changed, 130 insertions, 1 deletions
diff --git a/x11-libs/gl2ps/ChangeLog b/x11-libs/gl2ps/ChangeLog index c4645cfca3b3..b9d25eeb3c1d 100644 --- a/x11-libs/gl2ps/ChangeLog +++ b/x11-libs/gl2ps/ChangeLog @@ -1,6 +1,12 @@ # ChangeLog for x11-libs/gl2ps # Copyright 1999-2012 Gentoo Foundation; Distributed under the GPL v2 -# $Header: /var/cvsroot/gentoo-x86/x11-libs/gl2ps/ChangeLog,v 1.23 2012/09/30 17:57:40 armin76 Exp $ +# $Header: /var/cvsroot/gentoo-x86/x11-libs/gl2ps/ChangeLog,v 1.24 2012/12/06 14:08:46 jlec Exp $ + +*gl2ps-1.3.8 (06 Dec 2012) + + 06 Dec 2012; Justin Lecher <jlec@gentoo.org> +gl2ps-1.3.8.ebuild, + +files/gl2ps-1.3.8-cmake.patch: + Version Bump 30 Sep 2012; Raúl Porcel <armin76@gentoo.org> gl2ps-1.3.6.ebuild, gl2ps-1.3.7.ebuild: diff --git a/x11-libs/gl2ps/files/gl2ps-1.3.8-cmake.patch b/x11-libs/gl2ps/files/gl2ps-1.3.8-cmake.patch new file mode 100644 index 000000000000..5382b5b3ae73 --- /dev/null +++ b/x11-libs/gl2ps/files/gl2ps-1.3.8-cmake.patch @@ -0,0 +1,74 @@ +From: Sebastien Fabbro <bicatali@gentoo.org> + +Patch to add various enhancements to cmake: +* use GNU standard CMAKE_INSTALL_DOCDIR +* optional documenation building +* optional examples building +* do not install static libraries + +--- CMakeLists.txt 2012-09-02 02:07:33.000000000 -0700 ++++ CMakeLists.txt 2012-09-17 13:51:58.337832078 -0700 +@@ -46,6 +46,8 @@ + + option(ENABLE_ZLIB "Enable compression using ZLIB" ON) + option(ENABLE_PNG "Enable PNG support" ON) ++option(ENABLE_DOC "Enable documentation" OFF) ++option(ENABLE_EXAMPLES "Build and install examples" OFF) + + set(GL2PS_MAJOR_VERSION 1) + set(GL2PS_MINOR_VERSION 3) +@@ -103,8 +105,6 @@ + include_directories(${EXTERNAL_INCLUDES}) + + if(OPENGL_FOUND) +- add_library(lib STATIC gl2ps.c gl2ps.h) +- set_target_properties(lib PROPERTIES OUTPUT_NAME gl2ps) + + add_library(shared SHARED gl2ps.c gl2ps.h) + target_link_libraries(shared ${EXTERNAL_LIBRARIES}) +@@ -116,29 +116,32 @@ + set_target_properties(shared PROPERTIES COMPILE_FLAGS "-DGL2PSDLL -DGL2PSDLL_EXPORTS") + endif(MSVC) + +- install(TARGETS lib shared DESTINATION lib${LIB_SUFFIX}) ++ install(TARGETS shared DESTINATION lib${LIB_SUFFIX}) + endif(OPENGL_FOUND) + + if(WIN32) + set(GL2PS_DOC .) + else(WIN32) +- set(GL2PS_DOC share/doc/gl2ps) ++ set(GL2PS_DOC ${CMAKE_INSTALL_DOCDIR}) + 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}) ++ ++ ++if(ENABLE_EXAMPLES) + install(FILES ${CMAKE_SOURCE_DIR}/gl2psTest.c DESTINATION ${GL2PS_DOC}) + install(FILES ${CMAKE_SOURCE_DIR}/gl2psTestSimple.c DESTINATION ${GL2PS_DOC}) +- + if(GLUT_FOUND) + add_executable(gl2psTest WIN32 gl2psTest.c) + target_link_libraries(gl2psTest lib ${EXTERNAL_LIBRARIES}) + add_executable(gl2psTestSimple WIN32 gl2psTestSimple.c) + target_link_libraries(gl2psTestSimple lib ${EXTERNAL_LIBRARIES}) + endif(GLUT_FOUND) ++endif(ENABLE_EXAMPLES) + ++if(ENABLE_DOC) + find_package(LATEX) + if(PDFLATEX_COMPILER) + add_custom_command(OUTPUT gl2ps.pdf DEPENDS gl2ps.tex +@@ -157,6 +160,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.8.ebuild b/x11-libs/gl2ps/gl2ps-1.3.8.ebuild new file mode 100644 index 000000000000..9fa6ea3fa338 --- /dev/null +++ b/x11-libs/gl2ps/gl2ps-1.3.8.ebuild @@ -0,0 +1,49 @@ +# Copyright 1999-2012 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Header: /var/cvsroot/gentoo-x86/x11-libs/gl2ps/gl2ps-1.3.8.ebuild,v 1.1 2012/12/06 14:08:46 jlec Exp $ + +EAPI=4 +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="~amd64 ~ppc ~ppc64 ~x86 ~amd64-linux ~x86-linux ~ppc-macos ~x86-macos" +IUSE="doc png zlib" + +RDEPEND=" + media-libs/freeglut + x11-libs/libXmu + png? ( media-libs/libpng ) + zlib? ( sys-libs/zlib )" +DEPEND="${RDEPEND} + doc? ( + dev-tex/tth + dev-texlive/texlive-latex + dev-texlive/texlive-latexrecommended )" + +S=${WORKDIR}/${P}-source + +PATCHES=( "${FILESDIR}"/${P}-cmake.patch ) + +src_configure() { + local mycmakeargs=( + -DCMAKE_INSTALL_DOCDIR="share/doc/${PF}" + $(cmake-utils_use_enable png PNG) + $(cmake-utils_use_enable zlib ZLIB) + $(cmake-utils_use_enable doc DOC) + ) + cmake-utils_src_configure +} + +src_install() { + cmake-utils_src_install + if [[ ${CHOST} == *-darwin* ]] ; then + install_name_tool \ + -id "${EPREFIX}"/usr/$(get_libdir)/libgl2ps.dylib \ + "${D%/}${EPREFIX}"/usr/$(get_libdir)/libgl2ps.dylib || die + fi +} |