From: Nick Bowler Date: Sat, 28 Jan 2012 21:43:16 +0000 (-0500) Subject: Add upstream Xpdf ebuild. X-Git-Url: http://git.draconx.ca/gitweb/gentoo-draconx.git/commitdiff_plain/f8fa2488b9b722695c313de631c5dbea2af2521f Add upstream Xpdf ebuild. --- diff --git a/app-text/xpdf/Manifest b/app-text/xpdf/Manifest new file mode 100644 index 0000000..f4bc453 --- /dev/null +++ b/app-text/xpdf/Manifest @@ -0,0 +1,5 @@ +AUX xpdf-Add-Gentoo-font-path.patch 914 RMD160 facb73c2b7f4a32bcb85fb6320fc83b7ca219bb5 SHA1 01fa7d16548152cb1e75486fcc2106bbb33f8768 SHA256 291265ef0699050ca02329bfec5dab884cf12668f3d050744575ae9429fcdb16 +AUX xpdf-set-default-font-paths.patch 2783 RMD160 b80950e983de28b6229beced1efad8586eeb49f4 SHA1 ec494c8063f0b8f92f533fd219cfc1788c2cefac SHA256 8d65ea4732c1fe4155c047fc9844de75dbc8dab8dac9f64456889704edbf2871 +AUX xpdf.desktop 2907 RMD160 e51945f1de2a36f83eb36715b3e7ab1eec0ecc1c SHA1 6385a4e0891f6cab54284190b2127ab6b5ca3c66 SHA256 321726e47e4a782a3788778b10db4f2dba4e3d252b5f268ef3325a8a4fe9d018 +DIST xpdf-3.03.tar.gz 795537 RMD160 ef1336c189026fb0ecd169e2b37b5a5aa22e04be SHA1 499423e8a795e0efd76ca798239eb4d0d52fe248 SHA256 02cf63d8f6326eda644096cd0f969e1588702ad87222c1e9388a93c270fbceca +EBUILD xpdf-3.03.ebuild 807 RMD160 dd2a4d868e78e519ab4e5c4144d5f67d98393bc4 SHA1 b616f7a23b0c09c9d89263ec49295fad5ec5eb57 SHA256 b3762546a32d6ad0c2f1e92bca95ff5d8eae19aed4b18bc51ded6b8496d7cbcd diff --git a/app-text/xpdf/files/xpdf-Add-Gentoo-font-path.patch b/app-text/xpdf/files/xpdf-Add-Gentoo-font-path.patch new file mode 100644 index 0000000..2a7f834 --- /dev/null +++ b/app-text/xpdf/files/xpdf-Add-Gentoo-font-path.patch @@ -0,0 +1,27 @@ +From 0ce58e3f3c78760aa1f2204325862113a71ef763 Mon Sep 17 00:00:00 2001 +From: Nick Bowler +Date: Sat, 28 Jan 2012 16:01:01 -0500 +Subject: [PATCH] Add Gentoo font path to default search dir. + +This allows Xpdf to automatically find the required type-1 fonts on +Gentoo. The font paths can also be set in xpdfrc, but this approach is +more robust as the user's xpdfrc overrides the system-wide one. +--- + xpdf/GlobalParams.cc | 1 + + 1 files changed, 1 insertions(+), 0 deletions(-) + +diff --git a/xpdf/GlobalParams.cc b/xpdf/GlobalParams.cc +index 63e932b..7b7dc41 100644 +--- a/xpdf/GlobalParams.cc ++++ b/xpdf/GlobalParams.cc +@@ -110,6 +110,7 @@ static const char *displayFontDirs[] = { + }; + #else + static const char *displayFontDirs[] = { ++ "/usr/share/fonts/urw-fonts", + "/usr/share/ghostscript/fonts", + "/usr/local/share/ghostscript/fonts", + "/usr/share/fonts/default/Type1", +-- +1.7.3.4 + diff --git a/app-text/xpdf/files/xpdf.desktop b/app-text/xpdf/files/xpdf.desktop new file mode 100644 index 0000000..c8b5e27 --- /dev/null +++ b/app-text/xpdf/files/xpdf.desktop @@ -0,0 +1,90 @@ +[Desktop Entry] +Encoding=UTF-8 +BinaryPattern= +Name=Xpdf +Name[af]=X Pdf +Name[bn]=এক্স পি-ডি-এফ +Name[de]=X-PDF +Name[eo]=XPDF +Name[es]=PDF para X +Name[fr]=XPDF +Name[hi]=एक्स पीडीएफ +Name[ko]=X용 PDF +Name[mn]=X-PDF +Name[xx]=xxX PDFxx +GenericName=PDF Viewer +GenericName[af]=Pdf Aansig +GenericName[ar]=عارض ملفات PDF +GenericName[az]=PDF Nümayişçisi +GenericName[bg]=Преглед на документи PDF +GenericName[bn]=পি-ডি-এফ প্রদর্শক +GenericName[br]=Gweler PDF +GenericName[bs]=Preglednik PDF dokumenata +GenericName[ca]=Visor PDF +GenericName[cs]=Prohlížeč PDF souborů +GenericName[cy]=Gwelydd PDF +GenericName[da]=PDF-fremviser +GenericName[de]=PDF-Betrachter +GenericName[el]=Προβολέας PDF +GenericName[eo]=PDF-rigardilo +GenericName[es]=Visor de documentos PDF +GenericName[et]=PDF failide vaatamine +GenericName[eu]=PDF Ikustailua +GenericName[fa]=نمایشگر PDF +GenericName[fi]=PDF-Näyttäjä +GenericName[fo]=PDF-vísari +GenericName[fr]=Afficheur PDF +GenericName[gl]=Visualizador de PDF +GenericName[he]=מציג קבצי PDF +GenericName[hi]=पीडीएफ प्रदर्शक +GenericName[hr]=Preglednik PDF dokumenata +GenericName[hu]=PDF-nézegető +GenericName[id]=Viewer PDF +GenericName[is]=PDF-sjá +GenericName[it]=Visualizzatore PDF +GenericName[ja]=PDFビューア +GenericName[ko]=PDF 보기 +GenericName[lo]=ສະແດງຜົນPDF +GenericName[lt]=PDF Žiūriklis +GenericName[lv]=PDF Skatītājs +GenericName[mn]=PDF-Харагч +GenericName[mt]=Werrej PDF +GenericName[nb]=PDF-fremviser +GenericName[nds]=Kieker för PDF-Dateien +GenericName[nl]=PDF-weergaveprogramma +GenericName[nn]=PDF-lesar +GenericName[nso]=Molebeledi wa PDF +GenericName[oc]=Visualisor PDF +GenericName[pa]=PDF ਦਰਸ਼ਕ +GenericName[pl]=Przeglądarka plików PDF +GenericName[pt]=Visualizador de PDFs +GenericName[pt_BR]=Visualizador de arquivos PDF +GenericName[ro]=Vizualizor de documente PDF +GenericName[ru]=Программа просмотра документов PDF +GenericName[se]=PDF-logan +GenericName[sk]=Prehliadač PDF súborov +GenericName[sl]=Pregledovalnik datotek PDF +GenericName[sr]=PDF приказивач +GenericName[sr@Latn]=PDF prikazivač +GenericName[ss]=Sibuki se PDF +GenericName[sv]=PDF-visare +GenericName[ta]=PDF காட்சி +GenericName[tg]=Намоишгари PDF +GenericName[th]=ตัวแสดงผล PDF +GenericName[tr]=PDF Görüntüleyici +GenericName[uk]=Переглядач PDF +GenericName[uz]=PDF кўрувчи +GenericName[ven]=Tshivhoni tsha PDF +GenericName[vi]=Trình xem PDF +GenericName[wa]=Håyneu di documints PDF +GenericName[xx]=xxPDF Viewerxx +GenericName[zh_CN]=PDF 查看器 +GenericName[zh_TW]=PDF 檢視程式 +GenericName[zu]=Umbukisi we-PDF +Exec=xpdf +Icon=xpdf +Type=Application +Terminal=false +X-KDE-StartupNotify=false +Categories=Viewer;Office; +MimeType=application/pdf; diff --git a/app-text/xpdf/xpdf-3.03.ebuild b/app-text/xpdf/xpdf-3.03.ebuild new file mode 100644 index 0000000..02a1d38 --- /dev/null +++ b/app-text/xpdf/xpdf-3.03.ebuild @@ -0,0 +1,42 @@ +EAPI=4 + +inherit eutils + +DESCRIPTION="An X viewer for PDF files" +HOMEPAGE="http://www.foolabs.com/xpdf/" +SRC_URI="ftp://ftp.foolabs.com/pub/xpdf/xpdf-3.03.tar.gz" + +LICENSE="|| ( GPL-2 GPL-3 )" +SLOT="0" +KEYWORDS="~amd64" +IUSE="" + +DEPEND=">=x11-libs/openmotif-2.3:0 + media-libs/freetype:2 + app-text/libpaper + x11-libs/libX11 + x11-libs/libXpm" +RDEPEND="${DEPEND} + media-fonts/urw-fonts" + +src_prepare() { + epatch "${FILESDIR}"/xpdf-Add-Gentoo-font-path.patch +} + +src_configure() { + econf --with-freetype2-includes=/usr/include/freetype2 +} + +src_install() { + dobin xpdf/xpdf + doman doc/xpdf.1 + doman doc/xpdfrc.5 + dodoc COPYING COPYING3 README ANNOUNCE CHANGES + newicon xpdf/xpdfIcon.xpm xpdf.xpm + + insinto /etc + newins doc/sample-xpdfrc xpdfrc + + insinto /usr/share/applications + doins "${FILESDIR}"/xpdf.desktop +}