From: Stefan Huber Date: Sun, 12 Jul 2015 18:19:59 +0000 (+0200) Subject: ipe: Add ipe-7.1.8 X-Git-Url: https://git.sthu.org/?a=commitdiff_plain;h=b38a26b9e003118e73132fd8c2ef998773810d0f;p=shuber-gentoo-overlay.git ipe: Add ipe-7.1.8 --- diff --git a/media-gfx/ipe/Manifest b/media-gfx/ipe/Manifest index a92ee57..03503f5 100644 --- a/media-gfx/ipe/Manifest +++ b/media-gfx/ipe/Manifest @@ -1,5 +1,7 @@ AUX ipe-outputprecision.patch 2504 SHA256 142f967987a84d2c45d0ca90d3a4b72360dd720f8d1cfa17d6f66c4500ee7e35 SHA512 13692eb5d0934147195b894f4fc378bf9f8def020cf12066025c6973097a753860f884cc8de6dc686b1bff35603874efaa814fb82838d7695f31f023109c7d83 WHIRLPOOL 8a1f6cf43c458cc47a55f42a98a055ce0c5a2c1b7e368a4d892efb44ed1c821d28489c92e26457541439019f5998b6a89f8712bdb19d0959eb9ea90fe0a5993e DIST ipe-7.1.3-src.tar.gz 1497624 SHA256 4b3c537aeb9720e74ee5e63d50e1ec1f760f90b3896ffb9acc8c20353f60b8e9 SHA512 eea85ed6f4bc23e746222e01f4cdfd101c9c18aeb19fcba9abff565a65614a2a5e6630ddf9f7b024cac225582a34238a22f6fc5cf7dcc3733b8281ce844ef23d WHIRLPOOL a1b46452fb3b2d5da72a411eca48a2e24331416727b4013cecebad962817d3029c63a972ae7ee743b35cfe9adc4dc3c59d04572e9b472fdf774ad67202b0b264 DIST ipe-7.1.7-src.tar.gz 1758157 SHA256 ec670cd7f0fa521271fc54bf9b663570d82280bdbe405be6de59535fec7c00d2 SHA512 d47b984bfc5d605b4b1ee14ec94ec0abb923955c564d9a25c62f8b3bab7dd40a302ee683654ac5dce7a9903f60ca41c8621c09e88bda9d12afeaa1ad4c6d4b75 WHIRLPOOL 3ccdb72207359d1c27894b5d9d606cc4f648fa2246e098f1a6aea9b5e08f69b256cd1e00afd47987c559e2fb64c5cba2d533d5c812fa9f0dfd9c047decb4110c +DIST ipe-7.1.8-src.tar.gz 1663641 SHA256 6a7b8dfb0a012ef9e96b62c317974d910ab6904bef29ae7636d5ac1cb26fa6ff SHA512 4e76dc0d012de9dddb3f7494494a7a1c51b6240934c4941e1b38c2578da90487f3825f59526497b52d78330498b5e2c4459dbd3ceb237fe942d0fa235ece0e38 WHIRLPOOL 3b6c56254a12e55da42c921985501d6b708b6cbf0a69754b3058ad5f45a1189cd9a42994f659576b041e9d72877192026bedc98013c896b7eb22a1b8eed78e33 EBUILD ipe-7.1.3.ebuild 2345 SHA256 67b7284d5416e8a2df6d38d6457d050aeb363799f438a5ca58b5a8dfb62e7b54 SHA512 f4f1d8a3c213a55c8f98165e41da6682720b4e9a525f6da27437de94edef9aecde38c537257b27b21e786fd9cabbbfa039494673d73b55e2a22d7bddc5d1232b WHIRLPOOL 2a94bb4c3ecf176ef3fca2e86403a8ab514c2b4217959d34171e80bfe7aa33ec6511ed6ee648cd74e358968b9b0d1017e49ca34b5df81ab92521247bedbf9fad EBUILD ipe-7.1.7.ebuild 2411 SHA256 53d48124818681f23725ca5f7494834ed8b036c9ab9e2d7db0e77bc9398d61f7 SHA512 064c9025d99488609542aaef6209a852185444556e5a79065fcd15fe66e4dd7741d482bf03718e0b1551bae610c93aeb5b4fc73cfe6f74caa0cedaa99d5b13e4 WHIRLPOOL 169f2d34e38a7783e2169387fd549747b772acdde95239f51feee5be13c613f5a5fa651b4a0c81a89493eb62bdde06685db1458af56d2ebd4d18c969a37e7610 +EBUILD ipe-7.1.8.ebuild 2593 SHA256 eb1544352bd1644c9ee91c880e5397be3e5bd0c54a46ec5c301da6e9026a1d16 SHA512 fcf6b750625749fe1100df5acee76865bebefdbf1f09eed769daf545baa66b5d881208a3c75889c255ad5c2d5edf96e9fd3133729cbdeefce726092b1386936a WHIRLPOOL 5db8e3bdec92a09d2f250fe80424a1b774107663772cdf66ffc30c3de22f628fac363208ed1defac65ff002e1da02b5e3ab6f1a123480a08ec6ce565569cdf8e diff --git a/media-gfx/ipe/ipe-7.1.8.ebuild b/media-gfx/ipe/ipe-7.1.8.ebuild new file mode 100644 index 0000000..abe0a84 --- /dev/null +++ b/media-gfx/ipe/ipe-7.1.8.ebuild @@ -0,0 +1,100 @@ +# Distributed under the terms of the GNU General Public License v2 +# $Header: $ + +EAPI=4 +inherit eutils toolchain-funcs qt4-r2 + +DESCRIPTION="Drawing editor for creating figures in PDF or PS formats" +HOMEPAGE="http://ipe.otfried.org" +SRC_URI="https://raw.githubusercontent.com/otfried/ipe/master/releases/7.1/${P}-src.tar.gz" +# https://github.com/otfried/ipe/raw/master/releases/7.1/ipe-7.1.8-src.tar.gz +# https://raw.githubusercontent.com/otfried/ipe/master/releases/7.1/ipe-7.1.8-src.tar.gz + +RESTRICT="mirror" + +LICENSE="GPL-3" +SLOT="0" +KEYWORDS="~amd64 ~x86" +IUSE="highprec" + +RDEPEND="app-text/texlive-core + >=dev-lang/lua-5.2 + media-libs/freetype:2 + x11-libs/cairo + dev-qt/qtcore:4 + dev-qt/qtgui:4" +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-qt4/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" \ + LUA_PACKAGE=lua +} + +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 +}