From 12f36040e9db273d69a0e494806049fde4cbf523 Mon Sep 17 00:00:00 2001 From: Stefan Huber Date: Wed, 14 Feb 2024 22:27:17 +0100 Subject: [PATCH] media-gfx/ipe: Add ipe-7.2.28 --- media-gfx/ipe/Manifest | 2 + media-gfx/ipe/ipe-7.2.28.ebuild | 110 ++++++++++++++++++++++++++++++++ 2 files changed, 112 insertions(+) create mode 100644 media-gfx/ipe/ipe-7.2.28.ebuild diff --git a/media-gfx/ipe/Manifest b/media-gfx/ipe/Manifest index 4456bb8..d879e52 100644 --- a/media-gfx/ipe/Manifest +++ b/media-gfx/ipe/Manifest @@ -1,4 +1,6 @@ AUX ipe-outputprecision.patch 2488 BLAKE2B f6ac5918a2c23445885ecf3f6934484aaebdc90809ccf08b1b11c301ca0821726b9907fcd6a76d3501d874bda36c379c37fa611c75e97951ff460380e45c532b SHA512 0e851a4e2dae2d8deb11018da0c375ab219126072f152b29ba314a2c04b89b169eaac9981413a8144ac6119cf5f261d346c413af69e0a229e5946ad5c8b7b407 DIST ipe-7.2.25-src.tar.gz 1039024 BLAKE2B 460f624fde3f170329d70616bab86651d9bead0e3096d8a8c8bcea273391ec3ef049e449bd3871a2903f2f8f4618460d9466e5275a6839806c0ea97798c43f38 SHA512 c5a6ec8a28425bac40f531294878c5f5f3ec7b61df6e7026de07a2a85b441de2b7fbf8c10e57b2cd5a7587db6595ecc80a06bec8e22bd495e75e0fb5f2c2d6c6 +DIST v7.2.28.tar.gz 929625 BLAKE2B 40c1bd4c8de1a590ccc4aee01e7d549838a86498c9e2dcfa62a8742baf6eee824ed58bec318f57d47c98e7c882d6181f64f1cb7e9d853c9d7cf705709d2b28ef SHA512 4eccea0baa9a5d206c4c6590620e936a6765a86a45bd0abcec2b3a66b3b74481e7c84efea4321cc8b3ae587be351ca66551e752e02f0b4d488df1ebbb5d8a107 EBUILD ipe-7.2.25.ebuild 2775 BLAKE2B 98a3588a60715683b42171dd29226cf0345a2f4f6fd6dd4e20fa494b2213d94d322671fb3372a2ca9463763a55e26cfac9f1cde02a7c7a0282ab1f4df50a8ea8 SHA512 c24b516de3f61022339f3ccd02bf08ee5619493225fcd28f670279c2fa0b074a580194e95d02c51d59be33eab9da6c3189ede870d9be5d11568f0061e9af20a2 +EBUILD ipe-7.2.28.ebuild 2577 BLAKE2B d051101823686ec97aa48a07be642aecb33ed81ec80f21cc2afe9b3b19e4d9c4982b951d2f58ed885f9c9a9722b3b6f18d5539137dae471de74c3de068af30e2 SHA512 a0c150716181fbb54e1f1c9411f02597fe16be96e501906961ced5289936af22657073a9608805494683fa5d0e4c065fdc1efba5cbb1167d3393754ccc5e583a MISC metadata.xml 243 BLAKE2B 889d08efb220a9fb8457500f5f3c33c8c737616995e19fa8b621ced4bc9d380d016413d098d4d09925c679cd23f7fbd75e495424fe6ed809a9e873014caae682 SHA512 f9051a65d7e11d7abd1b9568dbbf8be84a6ae68eb994b0c22d57dff5620047d5ad5a324057a5cf4cec10837d16024e5f21a8cf5f1a6247807f62931839eb73bc diff --git a/media-gfx/ipe/ipe-7.2.28.ebuild b/media-gfx/ipe/ipe-7.2.28.ebuild new file mode 100644 index 0000000..90e3b34 --- /dev/null +++ b/media-gfx/ipe/ipe-7.2.28.ebuild @@ -0,0 +1,110 @@ +# Copyright 1999-2020 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=8 + +LUA_COMPAT=( lua5-3 ) +inherit lua-single toolchain-funcs + +DESCRIPTION="Drawing editor for creating figures in PDF or PS formats" +HOMEPAGE="http://ipe.otfried.org" +SRC_URI=" https://github.com/otfried/ipe/archive/refs/tags/v${PV}.tar.gz" + +RESTRICT="mirror" + +LICENSE="GPL-3" +SLOT="0" +KEYWORDS="~amd64 ~x86" +IUSE="highprec" + +REQUIRED_USE="${LUA_REQUIRED_USE}" + +RDEPEND=" + app-text/texlive-core + dev-qt/qtbase:6[widgets,gui] + dev-qt/qtsvg:6 + media-libs/freetype:2 + media-libs/libjpeg-turbo + media-libs/libpng + media-libs/libspiro + sci-libs/gsl + sys-libs/zlib + x11-libs/cairo + " +DEPEND="${RDEPEND} + ${LUA_DEPS}" + +BDEPEND="virtual/pkgconfig" + +S="${WORKDIR}/${P}/src" +COMMONDIR=/usr/share/ipe/common + +search_urw_fonts() { + # colon-separated list of paths + local texmfdist="$(kpsewhich -var-value=TEXMFDIST)" + # according to TeX directory structure + local urwdir=fonts/type1/urw + # add colon as field separator + local IFS="${IFS}:" dir + for dir in ${texmfdist}; do + if [[ -d ${dir}/${urwdir} ]]; then + URWFONTDIR="${dir}/${urwdir}" + return 0 + fi + done + return 1 +} + +src_prepare() { + sed -i \ + -e 's/fpic/fPIC/' \ + -e 's_/usr/lib/qt6/libexec/moc_/usr/lib64/qt6/libexec/moc_' \ + -e "s:\$(IPEPREFIX)/lib:\$(IPEPREFIX)/$(get_libdir):g" \ + config.mak || die + sed -i -e 's/install -s/install/' common.mak || die + + if use highprec; then + eapply "${FILESDIR}"/${PN}-outputprecision.patch + fi + + eapply_user +} + +pkg_setup() { + lua-single_pkg_setup + if search_urw_fonts; then + einfo "URW fonts found in ${URWFONTDIR}" + else + ewarn "Could not find directory containing URW fonts" + ewarn "Ipe will not function properly without them." + fi +} + +src_compile() { + emake \ + CXX=$(tc-getCXX) \ + IPEPREFIX="${EPREFIX}/usr" \ + IPEDOCDIR="${EPREFIX}/usr/share/doc/${PF}/html" +} + +src_install() { + emake install \ + IPEPREFIX="${EPREFIX}/usr" \ + IPEDOCDIR="${EPREFIX}/usr/share/doc/${PF}/html" \ + INSTALL_ROOT="${ED}" \ + LUA_VERSION="$(lua_get_version)" + make_desktop_entry ipe Ipe ipe + # Link style sheets + if [ -d $COMMONDIR/styles ]; then + einfo "Linking common style sheets from $COMMONDIR" + for f in $COMMONDIR/styles/*; do + einfo " Linking ${f##*/}" + dosym $f usr/share/ipe/${PV}/styles/${f##*/} + done + + elog "Style sheets from $COMMONDIR/styles have been symlinked to" + elog "the style sheet directory of ${P}. If you add additional" + elog "style sheets later to $COMMONDIR/styles you may symlink" + elog "them by hand to '/usr/share/ipe/${PV}/styles/'." + fi +} -- 2.39.5