media-gfx/ipe: Add ipe-7.2.18
authorStefan Huber <shuber@sthu.org>
Fri, 22 May 2020 19:43:23 +0000 (21:43 +0200)
committerStefan Huber <shuber@sthu.org>
Fri, 22 May 2020 19:43:23 +0000 (21:43 +0200)
media-gfx/ipe/Manifest
media-gfx/ipe/ipe-7.2.13.ebuild
media-gfx/ipe/ipe-7.2.15.ebuild
media-gfx/ipe/ipe-7.2.17.ebuild
media-gfx/ipe/ipe-7.2.18.ebuild [new file with mode: 0644]

index 82bdf1c..c23c99e 100644 (file)
@@ -2,6 +2,9 @@ AUX ipe-outputprecision.patch 2488 BLAKE2B f6ac5918a2c23445885ecf3f6934484aaebdc
 DIST ipe-7.2.13-src.tar.gz 1969907 BLAKE2B 934f19c66f8970be285b230df1a27fcb1a49eabf09f01b4fb05d41a39292cde30df6026de9c19e889979c1f4d2783215fb97ada76332755f36c43e80a3cee189 SHA512 e6e212ff3a9bf1d00c86cb3de5cd880903c35852b26f7122018350a5b945efab14cb7e9162d3b9e003d0cab14de1e1a3abee3df99f267f2ed229d8defc5897f5
 DIST ipe-7.2.15-src.tar.gz 2018628 BLAKE2B e28e36492591eb0f9d43307bc64fcfe8f3dd07e5faf289ffe8425741dfa8fea3f850f526f62537f1d288e1e136ddb219b98360fe01d977e1f1b838fe05e7679b SHA512 83bf96c545be52e50361c8a45d6c99ddd146cfa4a20fc36322214e1f3fdea95caed677b611d8aee9c73b446cf4dc1eff50b4981e64c8cce53cc500851c78fe4a
 DIST ipe-7.2.17-src.tar.gz 2067936 BLAKE2B 7ca43d00e2aa1a4f85bfe85e299afdf1701e6016176e96bb4af344273c39e45472a0d96beb04fc8e6e0a0f27fdc6842964512136fef6059149a35db95d2aa74a SHA512 64d0286af53283ac84494b9092036473d840940cae5c4c14b3184e15a8caad35a76d4fbe1fd704c9633bde54481b998db00a8537480b7df63f9545e3ea267a95
-EBUILD ipe-7.2.13.ebuild 2377 BLAKE2B 7a060e0723d7e3b4d40c9c0382edd3f9f00ac659d15b3221d0ab160b2a151cd79a14e7fd4a3d7868ed46e79de17b6e55f25b4ef8d5fade5f20a724009411de06 SHA512 c826618d040bf826871aa77816f5e04cb39275e12f344e4c6aab2ab51b7fd560ece8e432bca00e1d8787b8ef4377087d8ccfc2f2c246ddfadbba91ab4e002833
-EBUILD ipe-7.2.15.ebuild 2377 BLAKE2B 7a060e0723d7e3b4d40c9c0382edd3f9f00ac659d15b3221d0ab160b2a151cd79a14e7fd4a3d7868ed46e79de17b6e55f25b4ef8d5fade5f20a724009411de06 SHA512 c826618d040bf826871aa77816f5e04cb39275e12f344e4c6aab2ab51b7fd560ece8e432bca00e1d8787b8ef4377087d8ccfc2f2c246ddfadbba91ab4e002833
-EBUILD ipe-7.2.17.ebuild 2377 BLAKE2B 7a060e0723d7e3b4d40c9c0382edd3f9f00ac659d15b3221d0ab160b2a151cd79a14e7fd4a3d7868ed46e79de17b6e55f25b4ef8d5fade5f20a724009411de06 SHA512 c826618d040bf826871aa77816f5e04cb39275e12f344e4c6aab2ab51b7fd560ece8e432bca00e1d8787b8ef4377087d8ccfc2f2c246ddfadbba91ab4e002833
+DIST ipe-7.2.18-src.tar.gz 1868823 BLAKE2B adfd21f6c0a2b43bfcdfd2334aabf841e498e4a3d4e8b46d3ba031e851507d2fda6893ac070cbec20f164c46afa32f81401b9b03bd66c5abc695b05a2182dfe9 SHA512 3546c59a3670967b54b5813324affce669164404ac70acc5565fb14799a029252d8d0c568a43c6c90e42e37b01fccf91022fb0176f056fc6a895d33c5f6c7463
+EBUILD ipe-7.2.13.ebuild 2379 BLAKE2B ad8528b837a00bda8a9ca878ba2184ecffb38e5958fbc8e0066bc9c0bb89a42ea64df6e792efc5614f235673fe5e93cc42b6ba4579bae7e9ebf197d5ff26ed8f SHA512 6994e969739dfe004dd25317107fd4be9f22bf8b1c1c2b6192f004826dd34b0a9ee2d9b60c0bf8a744851230d9d88ea8e07c0f44621cfe6e8e679627cc8efb6f
+EBUILD ipe-7.2.15.ebuild 2379 BLAKE2B ad8528b837a00bda8a9ca878ba2184ecffb38e5958fbc8e0066bc9c0bb89a42ea64df6e792efc5614f235673fe5e93cc42b6ba4579bae7e9ebf197d5ff26ed8f SHA512 6994e969739dfe004dd25317107fd4be9f22bf8b1c1c2b6192f004826dd34b0a9ee2d9b60c0bf8a744851230d9d88ea8e07c0f44621cfe6e8e679627cc8efb6f
+EBUILD ipe-7.2.17.ebuild 2379 BLAKE2B ad8528b837a00bda8a9ca878ba2184ecffb38e5958fbc8e0066bc9c0bb89a42ea64df6e792efc5614f235673fe5e93cc42b6ba4579bae7e9ebf197d5ff26ed8f SHA512 6994e969739dfe004dd25317107fd4be9f22bf8b1c1c2b6192f004826dd34b0a9ee2d9b60c0bf8a744851230d9d88ea8e07c0f44621cfe6e8e679627cc8efb6f
+EBUILD ipe-7.2.18.ebuild 2377 BLAKE2B 7a060e0723d7e3b4d40c9c0382edd3f9f00ac659d15b3221d0ab160b2a151cd79a14e7fd4a3d7868ed46e79de17b6e55f25b4ef8d5fade5f20a724009411de06 SHA512 c826618d040bf826871aa77816f5e04cb39275e12f344e4c6aab2ab51b7fd560ece8e432bca00e1d8787b8ef4377087d8ccfc2f2c246ddfadbba91ab4e002833
+MISC metadata.xml 243 BLAKE2B 889d08efb220a9fb8457500f5f3c33c8c737616995e19fa8b621ced4bc9d380d016413d098d4d09925c679cd23f7fbd75e495424fe6ed809a9e873014caae682 SHA512 f9051a65d7e11d7abd1b9568dbbf8be84a6ae68eb994b0c22d57dff5620047d5ad5a324057a5cf4cec10837d16024e5f21a8cf5f1a6247807f62931839eb73bc
index ecac0eb..245df82 100644 (file)
@@ -15,7 +15,7 @@ SLOT="0"
 KEYWORDS="~amd64 ~x86"
 IUSE="highprec"
 
-RDEPEND="app-text/texlive-core
+       RDEPEND="<app-text/texlive-2020
        >=dev-lang/lua-5.3
        media-libs/freetype:2
        x11-libs/cairo
index ecac0eb..245df82 100644 (file)
@@ -15,7 +15,7 @@ SLOT="0"
 KEYWORDS="~amd64 ~x86"
 IUSE="highprec"
 
-RDEPEND="app-text/texlive-core
+       RDEPEND="<app-text/texlive-2020
        >=dev-lang/lua-5.3
        media-libs/freetype:2
        x11-libs/cairo
index ecac0eb..245df82 100644 (file)
@@ -15,7 +15,7 @@ SLOT="0"
 KEYWORDS="~amd64 ~x86"
 IUSE="highprec"
 
-RDEPEND="app-text/texlive-core
+       RDEPEND="<app-text/texlive-2020
        >=dev-lang/lua-5.3
        media-libs/freetype:2
        x11-libs/cairo
diff --git a/media-gfx/ipe/ipe-7.2.18.ebuild b/media-gfx/ipe/ipe-7.2.18.ebuild
new file mode 100644 (file)
index 0000000..ecac0eb
--- /dev/null
@@ -0,0 +1,98 @@
+# Copyright 1999-2020 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=7
+inherit eutils toolchain-funcs
+
+DESCRIPTION="Drawing editor for creating figures in PDF or PS formats"
+HOMEPAGE="http://ipe.otfried.org"
+SRC_URI="https://dl.bintray.com/otfried/generic/ipe/${PV%.*}/${P}-src.tar.gz"
+
+RESTRICT="mirror"
+
+LICENSE="GPL-3"
+SLOT="0"
+KEYWORDS="~amd64 ~x86"
+IUSE="highprec"
+
+RDEPEND="app-text/texlive-core
+       >=dev-lang/lua-5.3
+       media-libs/freetype:2
+       x11-libs/cairo
+       dev-qt/qtcore:5
+       dev-qt/qtwidgets:5"
+DEPEND="${RDEPEND}
+       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_moc_/usr/lib64/qt5/bin/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() {
+       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}"
+       dodoc ../{news,readme}.txt
+       doicon ipe/icons/ipe.png
+       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
+}