From: Andrew Savchenko Date: Sun, 27 Oct 2019 09:28:12 +0000 (+0300) Subject: app-text/xpdf: remove old and vulnerable version X-Git-Url: http://git.tremily.us/?a=commitdiff_plain;h=4200b42667589b1f425801d9128935b2a9b98134;p=gentoo.git app-text/xpdf: remove old and vulnerable version Package-Manager: Portage-2.3.77, Repoman-2.3.17 Signed-off-by: Andrew Savchenko --- diff --git a/app-text/xpdf/Manifest b/app-text/xpdf/Manifest index 11f337e9fc1c..f777d0be04f2 100644 --- a/app-text/xpdf/Manifest +++ b/app-text/xpdf/Manifest @@ -1,4 +1,3 @@ -DIST xpdf-4.01.01.tar.gz 891962 BLAKE2B 500cec4091f1ea4fda2008febcfbbe758663d26a1a2a9842abd8630c41a29f6f9fa9839a4b286a2d42e8d686d33084335ad7aa5775c1142cc196b38ef70914d6 SHA512 e0b42195ba4858ecf2ec3c3c06a42eae742eb8567dca695a45a01185b606b399b5e45d220b24ed39782d1f9b1ee16f674129db3346d25b709bbb3f90ef078c22 DIST xpdf-4.02.tar.gz 912885 BLAKE2B 70dec3d213566c1a7c13edd05e4f6145b45ad4c4805843393e0f86a07820511a5187cd61a04adf3c3fc671840acdb3b1bbb19dda7dc101df75e564971f51b76f SHA512 72c9413fc7241dde5288137ca8a68c837d2a68e95e909dbe2afe8f374b5a7c92af4edf82918963d1c6388c947057fcf5f0ae1e6fbb2b31c3d5eb9a07d3c74ddc DIST xpdf-arabic.tar.gz 1057 BLAKE2B 5889fa5704a805b152886043ee32082d5e60044fb96f91d429661f823d1ea9c929dcae22460421a7c26a7aae43d5926263fa2a1ea4c07e0e130e67f2fb0b6fab SHA512 1ddaee045c0c3576bda0ebf065021e66e1ac6673d6872aff8e8afb3bae33dd927d920d89761553bade040d20e4b60eb286131bdb2f2d75ec1e833b9a9ce58d3e DIST xpdf-chinese-simplified.tar.gz 918277 BLAKE2B ad41cc6ceae8d5295e49e6cb6356885a77dd314fd55cae95f4adf7ca597c7d86c0029b2767b1ecae86883d31cf9acc5d67997e1ab7871f10d2b6550734bb3b34 SHA512 1f016ff06301cf445546b380fe4cf0c1c9ef08b5e37bd392ca975b4a54fa43afbe251c31e14f216c68fb38dcf04f40ab5baf828586734efb7881a755f92cc49e diff --git a/app-text/xpdf/xpdf-4.01.01.ebuild b/app-text/xpdf/xpdf-4.01.01.ebuild deleted file mode 100644 index 272214724007..000000000000 --- a/app-text/xpdf/xpdf-4.01.01.ebuild +++ /dev/null @@ -1,113 +0,0 @@ -# Copyright 1999-2019 Gentoo Authors -# Distributed under the terms of the GNU General Public License v2 - -EAPI=7 - -inherit cmake-utils - -DESCRIPTION="The PDF viewer and tools" -HOMEPAGE="https://www.xpdfreader.com" -SRC_URI="https://xpdfreader-dl.s3.amazonaws.com/${P}.tar.gz - i18n? ( - https://xpdfreader-dl.s3.amazonaws.com/xpdf-arabic.tar.gz - https://xpdfreader-dl.s3.amazonaws.com/xpdf-chinese-simplified.tar.gz - https://xpdfreader-dl.s3.amazonaws.com/xpdf-chinese-traditional.tar.gz - https://xpdfreader-dl.s3.amazonaws.com/xpdf-cyrillic.tar.gz - https://xpdfreader-dl.s3.amazonaws.com/xpdf-greek.tar.gz - https://xpdfreader-dl.s3.amazonaws.com/xpdf-hebrew.tar.gz - https://xpdfreader-dl.s3.amazonaws.com/xpdf-japanese.tar.gz - https://xpdfreader-dl.s3.amazonaws.com/xpdf-korean.tar.gz - https://xpdfreader-dl.s3.amazonaws.com/xpdf-latin2.tar.gz - https://xpdfreader-dl.s3.amazonaws.com/xpdf-thai.tar.gz - https://xpdfreader-dl.s3.amazonaws.com/xpdf-turkish.tar.gz - )" - -LICENSE="GPL-2 GPL-3 i18n? ( BSD )" -SLOT="0" -KEYWORDS="~amd64 ~x86" -IUSE="cmyk cups i18n +libpaper metric opi png +textselect utils" - -DEPEND=" - cups? ( - dev-qt/qtprintsupport:5 - net-print/cups - ) - libpaper? ( app-text/libpaper ) - utils? ( png? ( media-libs/libpng:0 ) ) - dev-qt/qtnetwork:5 - dev-qt/qtwidgets:5 - media-libs/freetype - sys-libs/zlib -" -RDEPEND="${DEPEND} - media-fonts/urw-fonts -" - -PATCHES=( - "${FILESDIR}"/${PN}-automagic.patch - "${FILESDIR}"/${PN}-visibility.patch - "${FILESDIR}"/${PN}-shared-libs.patch -) - -src_prepare() { - sed -i \ - "s|/usr/local/etc|${EPREFIX}/etc|; - s|/usr/local|${EPREFIX}/usr|" \ - doc/sample-xpdfrc || die - - if use i18n; then - sed -i "s|/usr/local|${EPREFIX}/usr|" "${WORKDIR}"/*/add-to-xpdfrc || die - fi - - cmake-utils_src_prepare -} - -src_configure() { - local mycmakeargs=( - -DA4_PAPER=$(usex metric) - -DNO_TEXT_SELECT=$(usex textselect off on) - -DOPI_SUPPORT=$(usex opi) - -DSPLASH_CMYK=$(usex cmyk) - -DWITH_LIBPAPER=$(usex libpaper) - -DWITH_LIBPNG=$(usex png) - -DXPDFWIDGET_PRINTING=$(usex cups) - -DSYSTEM_XPDFRC="${EPREFIX}/etc/xpdfrc" - ) - cmake-utils_src_configure -} - -src_install() { - cmake-utils_src_install - - insinto /etc - newins doc/sample-xpdfrc xpdfrc - - local d i - if use utils; then - for d in "bin" "share/man/man1"; do - pushd "${ED}/usr/${d}" || die - for i in pdf*; do - mv "${i}" "x${i}" || die - done - popd || die - done - - einfo "PDF utilities were renamed from pdf* to xpdf* to avoid file collisions" - einfo "with other packages" - else - rm -rf "${ED}"/usr/bin/pdf* \ - "${ED}"/usr/share/man/man1/pdf* \ - "${ED}"/usr/$(get_libdir) || die - fi - - if use i18n; then - for i in arabic chinese-simplified chinese-traditional cyrillic greek \ - hebrew japanese korean latin2 thai turkish; do - insinto "/usr/share/xpdf/${i}" - doins -r $(find -O3 "${WORKDIR}/xpdf-${i}" -maxdepth 1 -mindepth 1 \ - ! -name README ! -name add-to-xpdfrc || die) - - cat "${WORKDIR}/xpdf-${i}/add-to-xpdfrc" >> "${ED}/etc/xpdfrc" || die - done - fi -}