media-gfx/ipe: Add 7.2.20 master
authorStefan Huber <shuber@sthu.org>
Fri, 26 Jun 2020 08:53:31 +0000 (10:53 +0200)
committerStefan Huber <shuber@sthu.org>
Fri, 26 Jun 2020 08:53:31 +0000 (10:53 +0200)
media-gfx/ipe/Manifest
media-gfx/ipe/ipe-7.2.20.ebuild [new file with mode: 0644]

index 753f46b..e2e6c86 100644 (file)
@@ -2,7 +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.18-src.tar.gz 1868823 BLAKE2B adfd21f6c0a2b43bfcdfd2334aabf841e498e4a3d4e8b46d3ba031e851507d2fda6893ac070cbec20f164c46afa32f81401b9b03bd66c5abc695b05a2182dfe9 SHA512 3546c59a3670967b54b5813324affce669164404ac70acc5565fb14799a029252d8d0c568a43c6c90e42e37b01fccf91022fb0176f056fc6a895d33c5f6c7463
 DIST ipe-7.2.19-src.tar.gz 1870385 BLAKE2B 697138f2acbbaf41664a40f97f0a852f28f04d85a740914ef32e238d4350dd6c6306a7a3e566407d9b74ce5cf46059615fb93aef1517ad9790ec6a6a9be6a3ae SHA512 b30dcc83b6f3a81eac8cda18f2c034c1e29d2c2e29f5a48a344e5ed86fbf9fed71e69e1680533d7f2a9098acb299a35e62325241f2ebd13a9ab34cb9e937211a
+DIST ipe-7.2.20-src.tar.gz 1876081 BLAKE2B 57216a1fd4f94c09a30309124bac8eff0167b319eb06c2fcf19847ba303c5e64a6c5d8738ead9c4c1ecd33abdf97375158a75dc7d172d458a8536b5bb3a2a171 SHA512 13a3fdcda3ce5bbf725c973f3b7a33f7edd1835bdadb2c72b2895ef624d568cbb92da7042833159b7643ebae94afa68b8bbfcf0ccbd80f0588a3b2b91b2124aa
 EBUILD ipe-7.2.13.ebuild 2379 BLAKE2B ad8528b837a00bda8a9ca878ba2184ecffb38e5958fbc8e0066bc9c0bb89a42ea64df6e792efc5614f235673fe5e93cc42b6ba4579bae7e9ebf197d5ff26ed8f SHA512 6994e969739dfe004dd25317107fd4be9f22bf8b1c1c2b6192f004826dd34b0a9ee2d9b60c0bf8a744851230d9d88ea8e07c0f44621cfe6e8e679627cc8efb6f
 EBUILD ipe-7.2.18.ebuild 2377 BLAKE2B 7a060e0723d7e3b4d40c9c0382edd3f9f00ac659d15b3221d0ab160b2a151cd79a14e7fd4a3d7868ed46e79de17b6e55f25b4ef8d5fade5f20a724009411de06 SHA512 c826618d040bf826871aa77816f5e04cb39275e12f344e4c6aab2ab51b7fd560ece8e432bca00e1d8787b8ef4377087d8ccfc2f2c246ddfadbba91ab4e002833
 EBUILD ipe-7.2.19.ebuild 2377 BLAKE2B 7a060e0723d7e3b4d40c9c0382edd3f9f00ac659d15b3221d0ab160b2a151cd79a14e7fd4a3d7868ed46e79de17b6e55f25b4ef8d5fade5f20a724009411de06 SHA512 c826618d040bf826871aa77816f5e04cb39275e12f344e4c6aab2ab51b7fd560ece8e432bca00e1d8787b8ef4377087d8ccfc2f2c246ddfadbba91ab4e002833
+EBUILD ipe-7.2.20.ebuild 2377 BLAKE2B 7a060e0723d7e3b4d40c9c0382edd3f9f00ac659d15b3221d0ab160b2a151cd79a14e7fd4a3d7868ed46e79de17b6e55f25b4ef8d5fade5f20a724009411de06 SHA512 c826618d040bf826871aa77816f5e04cb39275e12f344e4c6aab2ab51b7fd560ece8e432bca00e1d8787b8ef4377087d8ccfc2f2c246ddfadbba91ab4e002833
 MISC metadata.xml 243 BLAKE2B 889d08efb220a9fb8457500f5f3c33c8c737616995e19fa8b621ced4bc9d380d016413d098d4d09925c679cd23f7fbd75e495424fe6ed809a9e873014caae682 SHA512 f9051a65d7e11d7abd1b9568dbbf8be84a6ae68eb994b0c22d57dff5620047d5ad5a324057a5cf4cec10837d16024e5f21a8cf5f1a6247807f62931839eb73bc
diff --git a/media-gfx/ipe/ipe-7.2.20.ebuild b/media-gfx/ipe/ipe-7.2.20.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
+}