From: Stefan Huber Date: Thu, 24 Oct 2019 19:32:44 +0000 (+0200) Subject: media-gfx/ipe: Add ipe-7.2.13 X-Git-Url: https://git.sthu.org/?a=commitdiff_plain;h=3578e8b3897eaa74c95ce31ec7a67467c7c932d2;p=shuber-gentoo-overlay.git media-gfx/ipe: Add ipe-7.2.13 --- diff --git a/media-gfx/ipe/Manifest b/media-gfx/ipe/Manifest index ecad60b..10a7367 100644 --- a/media-gfx/ipe/Manifest +++ b/media-gfx/ipe/Manifest @@ -2,6 +2,8 @@ AUX ipe-outputprecision.patch 2504 BLAKE2B 7db95c3cf1298704e032001e3f5d86164d0c0 DIST ipe-7.1.10-src.tar.gz 1797408 BLAKE2B 1a9504883401f36ef169789d1077a1848f9abbf3bda1ec376e66334a8e4fb1fe0ea8fe4fee9751eee48cff074f6b1f4da1cce7d223657da22c33880884662a5b SHA512 c3e8d1ae0f2a5803f24d035b85ba8396fc7c4134e0de80ecf72fc335d3554cc84231d9f06dc4eb2bb17edc3344e54a8f5965b285dc5a7de3307083061b9c008a 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 1976416 BLAKE2B 43ec6041e4311ed4357591a3fae7291171ddc4fe0a2181de56f83033fbf5fb033abf846af1ce8135c8df93a93c994302bb488cf8f057c3ced6459953ebb38ce9 SHA512 0093e60915c5b8504dc34dfb12b0f086d0dc9663b8d431115b8773d0739e7c5ba8f2a280cfc2719a467f35850595c6f4589475397ed1d675868b449dbb5495e6 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 diff --git a/media-gfx/ipe/ipe-7.2.13.ebuild b/media-gfx/ipe/ipe-7.2.13.ebuild new file mode 100644 index 0000000..21a02f9 --- /dev/null +++ b/media-gfx/ipe/ipe-7.2.13.ebuild @@ -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 +}