]> git.sthu.org Git - shuber-gentoo-overlay.git/commitdiff
media-gfx/ipe: Add ipe-7.2.15
authorStefan Huber <shuber@sthu.org>
Sun, 3 May 2020 21:13:13 +0000 (23:13 +0200)
committerStefan Huber <shuber@sthu.org>
Sun, 3 May 2020 21:13:13 +0000 (23:13 +0200)
media-gfx/ipe/Manifest
media-gfx/ipe/ipe-7.2.15.ebuild [new file with mode: 0644]

index 0e7808e445d92dd0bf6cace459544147786deb78..c91aae9b3bcde76a4a26506d4035aa962676f531 100644 (file)
@@ -3,7 +3,9 @@ DIST ipe-7.1.10-src.tar.gz 1797408 BLAKE2B 1a9504883401f36ef169789d1077a1848f9ab
 DIST ipe-7.2.11-src.tar.gz 1950071 BLAKE2B af75c43a2c7c8f1ffdf33fbfd722a07c65bbf85a334ed8db69265d8418eaad57a95a90a6ac7df97229b44093cc4b539397f1f7d661ef9ab873345f91479f314f SHA512 665a1d0da18ef3d0a00997ebd0783ee4bba363f516bf34ef5ffc4dcbb09db6622845298884cfaa6ad86d7ef2d9f449ccb5bcf61073c69dd2a53bcaf085fae4e9
 DIST ipe-7.2.12-src.tar.gz 1958565 BLAKE2B 8f63da9b483d273152a1de3acd71a43e18c3dff9cc5588c0299bc369da16d2c32116feb27c18c7138e92e64b9517373d157bb91130cd83be1bf1cc8e5f9d1695 SHA512 3e81120b974fc47ceceaf108daf3d03933d79cf05d576e2303b1cf04e706f1516baf47a3ead09604d2993e6cb15015a531d65a413cfc664ab193db72cad8be17
 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
 EBUILD ipe-7.1.10.ebuild 2410 BLAKE2B 69f1255d1d9530a04142515d6143472d2814e1516a2c9c0440b795ef7fd619657c86834fc3495364a28397ad6f9c3653005dc7b8f349b092a53cbd659b741658 SHA512 0ca1ba023d61cd88b484108d63ab38c521e170a0c53df0990be5a8c7f9b4212745b8874f3410c1c54747acea75cdfd4c5cc147de4c1c3cd7c5a389e502c9907f
 EBUILD ipe-7.2.11.ebuild 2390 BLAKE2B 63ed211dc6b9553dcbc5afa864e0e85b6c0a2716597b555d4ae41bba819bb1f74f4c80fd8f33d776941baa5448b63a8c88e234dde2ffa78170ac36e8f73af3f1 SHA512 95d0df6e50503b08a45ca73d4edbb8e7bda58e7c0c9482f7647eddeaa4cdae75fe9590ff0747639c1379d94e57b2a5487158c37fa195ff19690585533ff7c5f5
 EBUILD ipe-7.2.12.ebuild 2390 BLAKE2B 63ed211dc6b9553dcbc5afa864e0e85b6c0a2716597b555d4ae41bba819bb1f74f4c80fd8f33d776941baa5448b63a8c88e234dde2ffa78170ac36e8f73af3f1 SHA512 95d0df6e50503b08a45ca73d4edbb8e7bda58e7c0c9482f7647eddeaa4cdae75fe9590ff0747639c1379d94e57b2a5487158c37fa195ff19690585533ff7c5f5
 EBUILD ipe-7.2.13.ebuild 2390 BLAKE2B 63ed211dc6b9553dcbc5afa864e0e85b6c0a2716597b555d4ae41bba819bb1f74f4c80fd8f33d776941baa5448b63a8c88e234dde2ffa78170ac36e8f73af3f1 SHA512 95d0df6e50503b08a45ca73d4edbb8e7bda58e7c0c9482f7647eddeaa4cdae75fe9590ff0747639c1379d94e57b2a5487158c37fa195ff19690585533ff7c5f5
+EBUILD ipe-7.2.15.ebuild 2390 BLAKE2B 63ed211dc6b9553dcbc5afa864e0e85b6c0a2716597b555d4ae41bba819bb1f74f4c80fd8f33d776941baa5448b63a8c88e234dde2ffa78170ac36e8f73af3f1 SHA512 95d0df6e50503b08a45ca73d4edbb8e7bda58e7c0c9482f7647eddeaa4cdae75fe9590ff0747639c1379d94e57b2a5487158c37fa195ff19690585533ff7c5f5
diff --git a/media-gfx/ipe/ipe-7.2.15.ebuild b/media-gfx/ipe/ipe-7.2.15.ebuild
new file mode 100644 (file)
index 0000000..21a02f9
--- /dev/null
@@ -0,0 +1,97 @@
+# Distributed under the terms of the GNU General Public License v2
+# $Header: $
+
+EAPI=4
+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
+               einfo "Adding patch for higher output precision"
+               epatch "${FILESDIR}"/${PN}-outputprecision.patch
+       fi
+}
+
+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
+}