summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJakov Smolic <jakov.smolic@sartura.hr>2021-02-13 11:14:26 +0100
committerDavid Seifert <soap@gentoo.org>2021-02-13 11:14:26 +0100
commit38ea80b509c2b54cdcb52cfa22285db3136eca3f (patch)
tree18a43208bbe30145ce0cc90292ef22d57966ed73 /media-libs/lasi
parentdev-python/xdoctest: Remove old (diff)
downloadgentoo-38ea80b509c2b54cdcb52cfa22285db3136eca3f.tar.gz
gentoo-38ea80b509c2b54cdcb52cfa22285db3136eca3f.tar.bz2
gentoo-38ea80b509c2b54cdcb52cfa22285db3136eca3f.zip
media-libs/lasi: Bump to 1.1.3
Signed-off-by: Jakov Smolic <jakov.smolic@sartura.hr> Signed-off-by: David Seifert <soap@gentoo.org>
Diffstat (limited to 'media-libs/lasi')
-rw-r--r--media-libs/lasi/Manifest1
-rw-r--r--media-libs/lasi/files/lasi-1.1.3-cmake.patch11
-rw-r--r--media-libs/lasi/files/lasi-1.1.3-pkgconfig.patch20
-rw-r--r--media-libs/lasi/lasi-1.1.3.ebuild59
4 files changed, 91 insertions, 0 deletions
diff --git a/media-libs/lasi/Manifest b/media-libs/lasi/Manifest
index f05d653a3005..da36f05c36aa 100644
--- a/media-libs/lasi/Manifest
+++ b/media-libs/lasi/Manifest
@@ -1 +1,2 @@
DIST libLASi-1.1.2.tar.gz 260948 BLAKE2B 044d906abadd902f91726c0e07e6ec364a3419bcea855a58cfeb44be30b2b9e0334c61931d3210750167ebc7599d8d4022960c40b0be68727385cf01b65780bb SHA512 5a03890b822946805025157497ce5f29fdfbcf5f2941bcd07841d9865cac9653697dbbba426f8527528affd4157e49d0f31a6dad79abdd52222dfcccf135ac91
+DIST libLASi-1.1.3.tar.gz 726769 BLAKE2B d8d06fb56e82b78f4342c959965de3908d70d1cec6147a6e3cc3d58ab4e9f978b7966c8e4507c0ff69e4ba3716270f38f3cfcafdc834001e3a0069a3495eda31 SHA512 036fb0ea1536d4ae04c0d9b5bd193ca6828228afe2cba6c1c7e12febd9b936bf3ac677711c122c44d3b12ab2f7b67f5e9dd18f44a4938ceaa2fbcc430a5748ac
diff --git a/media-libs/lasi/files/lasi-1.1.3-cmake.patch b/media-libs/lasi/files/lasi-1.1.3-cmake.patch
new file mode 100644
index 000000000000..87ff82e0ba7f
--- /dev/null
+++ b/media-libs/lasi/files/lasi-1.1.3-cmake.patch
@@ -0,0 +1,11 @@
+--- a/cmake/modules/summary.cmake
++++ b/cmake/modules/summary.cmake
+@@ -30,7 +30,7 @@ WATCOM: ${WATCOM}
+
+ CMAKE_BUILD_TYPE: ${CMAKE_BUILD_TYPE}
+ CMAKE_CXX_COMPILER: ${CMAKE_CXX_COMPILER}")
+-if(NOT CMAKE_BUILD_TYPE)
++if(NOT CMAKE_BUILD_TYPE OR CMAKE_BUILD_TYPE STREQUAL "None")
+ set(_output_results
+ "${_output_results}
+ CMAKE_CXX_FLAGS: ${CMAKE_CXX_FLAGS}")
diff --git a/media-libs/lasi/files/lasi-1.1.3-pkgconfig.patch b/media-libs/lasi/files/lasi-1.1.3-pkgconfig.patch
new file mode 100644
index 000000000000..dbc831d4a27f
--- /dev/null
+++ b/media-libs/lasi/files/lasi-1.1.3-pkgconfig.patch
@@ -0,0 +1,20 @@
+--- a/CMakeLists.txt
++++ b/CMakeLists.txt
+@@ -66,6 +66,7 @@ ${CMAKE_CURRENT_BINARY_DIR}/config.h
+ configure_file(
+ ${CMAKE_CURRENT_SOURCE_DIR}/lasi.pc.in
+ ${CMAKE_CURRENT_BINARY_DIR}/lasi.pc
++@ONLY
+ )
+
+ install(FILES
+--- a/lasi.pc.in
++++ b/lasi.pc.in
+@@ -1,6 +1,6 @@
+ prefix=@prefix@
+ exec_prefix=@exec_prefix@
+-libdir=@libdir@
++libdir=${exec_prefix}/@libdir@
+ includedir=@includedir@
+
+ Name: LASi
diff --git a/media-libs/lasi/lasi-1.1.3.ebuild b/media-libs/lasi/lasi-1.1.3.ebuild
new file mode 100644
index 000000000000..e2e42d403fd0
--- /dev/null
+++ b/media-libs/lasi/lasi-1.1.3.ebuild
@@ -0,0 +1,59 @@
+# Copyright 1999-2021 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=7
+
+inherit cmake
+
+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 ~arm64 ~hppa ~mips ~ppc ~ppc64 ~riscv ~sparc ~x86 ~amd64-linux ~x86-linux"
+IUSE="doc examples"
+
+RDEPEND="
+ dev-libs/glib:2
+ media-libs/freetype:2
+ x11-libs/pango"
+DEPEND="${RDEPEND}"
+BDEPEND="
+ virtual/pkgconfig
+ doc? ( app-doc/doxygen )"
+
+S="${WORKDIR}/${MY_P}"
+
+PATCHES=(
+ "${FILESDIR}"/${P}-cmake.patch
+ "${FILESDIR}"/${P}-pkgconfig.patch
+)
+
+src_prepare() {
+ cmake_src_prepare
+ sed -i \
+ -e "s:\/lib$:\/$(get_libdir):" \
+ -e "s/libLASi-\${VERSION}/${PF}/" \
+ cmake/modules/instdirs.cmake || die
+ sed -i \
+ -e "s:\${DATA_DIR}/examples:/usr/share/doc/${PF}/examples:" \
+ examples/CMakeLists.txt || die
+
+ if use !examples; then
+ sed -i -e '/add_subdirectory(examples)/d' CMakeLists.txt
+ fi
+}
+
+src_configure() {
+ # doesn't like CMAKE_BUILD_TYPE = Gentoo
+ CMAKE_BUILD_TYPE=None
+ local mycmakeargs=(
+ -DDOXYGEN_EXECUTABLE=$(usex doc "${BROOT}"/usr/bin/doxygen '')
+ -DUSE_RPATH=OFF
+ )
+ cmake_src_configure
+}