summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJohannes Huber <johu@gentoo.org>2017-02-02 10:18:52 +0100
committerJohannes Huber <johu@gentoo.org>2017-02-02 10:18:52 +0100
commit10c6fd6b263fc0616b0e11f0dc5f2a0d0ece229c (patch)
tree47b512b30332b39b18929f9de3ddef02ffa41c4e
parentmedia-libs/rply: EAPI 6 (diff)
downloadgentoo-10c6fd6b263fc0616b0e11f0dc5f2a0d0ece229c.tar.gz
gentoo-10c6fd6b263fc0616b0e11f0dc5f2a0d0ece229c.tar.bz2
gentoo-10c6fd6b263fc0616b0e11f0dc5f2a0d0ece229c.zip
media-libs/lasi: Version bump 1.1.2
Package-Manager: Portage-2.3.3, Repoman-2.3.1
-rw-r--r--media-libs/lasi/Manifest1
-rw-r--r--media-libs/lasi/files/lasi-1.1.0-cmake.patch4
-rw-r--r--media-libs/lasi/lasi-1.1.2.ebuild57
3 files changed, 60 insertions, 2 deletions
diff --git a/media-libs/lasi/Manifest b/media-libs/lasi/Manifest
index 6592c80d06dc..ce5a854f3b4b 100644
--- a/media-libs/lasi/Manifest
+++ b/media-libs/lasi/Manifest
@@ -1 +1,2 @@
DIST libLASi-1.1.1.tar.gz 223589 SHA256 175964cb4fec347737899f9fa0b8d7441864ae20f439e013432d9b9072ab3723 SHA512 b6a0aa180baebab5f7817186b443d828169b7493e2436190b9f98ef6f6769f546e05772a02dc705f68adf899f7e51878e580818ea0ce5258943de2273672dc77 WHIRLPOOL e49c63b7d2a6f611ca78b6f6fbef4dc1286bc42b217a870a0d79a9089bc7ad5ba8d902f78aa2ed8e33a9b02a3a400a18a60d459b5ef6fb758cbd88ecb199cefb
+DIST libLASi-1.1.2.tar.gz 260948 SHA256 448c6e52263a1e88ac2a157f775c393aa8b6cd3f17d81fc51e718f18fdff5121 SHA512 5a03890b822946805025157497ce5f29fdfbcf5f2941bcd07841d9865cac9653697dbbba426f8527528affd4157e49d0f31a6dad79abdd52222dfcccf135ac91 WHIRLPOOL 1e293bd82e287c10b27476a84778924ab8007e9cf673bc2d9c2f4f1461abccf5cd36a914000fabe1b81cb433c58b70733716bc9010f6b7771e11f6ae582b778a
diff --git a/media-libs/lasi/files/lasi-1.1.0-cmake.patch b/media-libs/lasi/files/lasi-1.1.0-cmake.patch
index 491c1733693a..95a725c50325 100644
--- a/media-libs/lasi/files/lasi-1.1.0-cmake.patch
+++ b/media-libs/lasi/files/lasi-1.1.0-cmake.patch
@@ -1,5 +1,5 @@
---- cmake/modules.orig/summary.cmake 2008-02-09 01:27:56.000000000 +0000
-+++ cmake/modules/summary.cmake 2008-11-04 16:25:59.968913787 +0000
+--- a/cmake/modules.orig/summary.cmake 2008-02-09 01:27:56.000000000 +0000
++++ b/cmake/modules/summary.cmake 2008-11-04 16:25:59.968913787 +0000
@@ -30,7 +30,7 @@
CMAKE_BUILD_TYPE: ${CMAKE_BUILD_TYPE}
diff --git a/media-libs/lasi/lasi-1.1.2.ebuild b/media-libs/lasi/lasi-1.1.2.ebuild
new file mode 100644
index 000000000000..ad7d39e29022
--- /dev/null
+++ b/media-libs/lasi/lasi-1.1.2.ebuild
@@ -0,0 +1,57 @@
+# Copyright 1999-2017 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Id$
+
+EAPI=6
+
+inherit cmake-utils multilib
+
+MY_PN=libLASi
+MY_P=${MY_PN}-${PV}
+
+DESCRIPTION="C++ library for postscript stream output"
+HOMEPAGE="http://www.unifont.org/lasi/"
+SRC_URI="mirror://sourceforge/${PN}/${MY_P}.tar.gz"
+
+LICENSE="GPL-2"
+SLOT="0"
+KEYWORDS="~alpha ~amd64 ~hppa ~mips ~ppc ~ppc64 ~sparc ~x86 ~amd64-fbsd ~x86-fbsd ~amd64-linux ~x86-linux"
+IUSE="doc examples"
+
+RDEPEND="
+ dev-libs/glib:2
+ media-libs/freetype:2
+ x11-libs/pango"
+DEPEND="${RDEPEND}
+ virtual/pkgconfig
+ doc? ( app-doc/doxygen )"
+
+S=${WORKDIR}/${MY_P}
+
+PATCHES=(
+ "${FILESDIR}"/${PN}-1.1.0-cmake.patch
+ "${FILESDIR}"/${PN}-1.1.0-pkgconfig.patch
+)
+
+src_prepare() {
+ cmake-utils_src_prepare
+ sed -i \
+ -e "s:\/lib$:\/$(get_libdir):" \
+ -e "s/libLASi-\${VERSION}/${PF}/" \
+ cmake/modules/instdirs.cmake \
+ || die "Failed to fix cmake module"
+ sed -i \
+ -e "s:\${DATA_DIR}/examples:/usr/share/doc/${PF}/examples:" \
+ examples/CMakeLists.txt || die
+
+ use examples || sed -i -e '/add_subdirectory(examples)/d' CMakeLists.txt
+}
+
+src_configure() {
+ CMAKE_BUILD_TYPE=None
+ local mycmakeargs=(
+ -DCMAKE_INSTALL_LIBDIR="${EPREFIX}"/usr/$(get_libdir)
+ )
+ use doc || mycmakeargs+=( -DDOXYGEN_EXECUTABLE= )
+ cmake-utils_src_configure
+}