summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPeter Volkov <pva@gentoo.org>2007-12-13 09:52:53 +0000
committerPeter Volkov <pva@gentoo.org>2007-12-13 09:52:53 +0000
commit1b8d9bf815ac7b953e062a6abd568b062042ab09 (patch)
tree8ce33203f9c687c8637120456ccab77f830803a7 /app-text/djvu
parentset to correct HOMEPAGE; remove virtual/emacs from DEPEND (provided by eclass... (diff)
downloadhistorical-1b8d9bf815ac7b953e062a6abd568b062042ab09.tar.gz
historical-1b8d9bf815ac7b953e062a6abd568b062042ab09.tar.bz2
historical-1b8d9bf815ac7b953e062a6abd568b062042ab09.zip
Add LINGUAS handling thus fixes nls not having any effect, bug #201936, thank Petr Pisar <petr.pisar AT atlas.cz> for report and fix.
Package-Manager: portage-2.1.3.19
Diffstat (limited to 'app-text/djvu')
-rw-r--r--app-text/djvu/ChangeLog8
-rw-r--r--app-text/djvu/Manifest15
-rw-r--r--app-text/djvu/djvu-3.5.20-r1.ebuild130
-rw-r--r--app-text/djvu/files/digest-djvu-3.5.20-r13
4 files changed, 151 insertions, 5 deletions
diff --git a/app-text/djvu/ChangeLog b/app-text/djvu/ChangeLog
index 809e516b404b..cf58c93a9d5b 100644
--- a/app-text/djvu/ChangeLog
+++ b/app-text/djvu/ChangeLog
@@ -1,6 +1,12 @@
# ChangeLog for app-text/djvu
# Copyright 2002-2007 Gentoo Foundation; Distributed under the GPL v2
-# $Header: /var/cvsroot/gentoo-x86/app-text/djvu/ChangeLog,v 1.68 2007/12/10 12:02:04 pva Exp $
+# $Header: /var/cvsroot/gentoo-x86/app-text/djvu/ChangeLog,v 1.69 2007/12/13 09:52:52 pva Exp $
+
+*djvu-3.5.20-r1 (13 Dec 2007)
+
+ 13 Dec 2007; <pva@gentoo.org> +djvu-3.5.20-r1.ebuild:
+ Add LINGUAS handling thus fixes nls not having any effect, bug #201936,
+ thank Petr Pisar <petr.pisar AT atlas.cz> for report and fix.
*djvu-3.5.20 (10 Dec 2007)
diff --git a/app-text/djvu/Manifest b/app-text/djvu/Manifest
index c247dfa28555..2b267a3eb937 100644
--- a/app-text/djvu/Manifest
+++ b/app-text/djvu/Manifest
@@ -12,14 +12,18 @@ EBUILD djvu-3.5.19.ebuild 3295 RMD160 85ad554d5a7c8dd8990f8f8408c3b3953eba8704 S
MD5 a61cb04829515ab5d96cb5b56a4adfe1 djvu-3.5.19.ebuild 3295
RMD160 85ad554d5a7c8dd8990f8f8408c3b3953eba8704 djvu-3.5.19.ebuild 3295
SHA256 8c50ba5e182e3ecd34ec9a002159c8365f1a9e4c4b9af3be3ffd58734f60f9ce djvu-3.5.19.ebuild 3295
+EBUILD djvu-3.5.20-r1.ebuild 3481 RMD160 c96edaf41b0f370b836ac32a507adc38cf2a5a9a SHA1 be93834d77864f9806c4d86e99fd1a037c90e47a SHA256 8bd58745bc41e8d2f40021b396c5e39fed893fb546eff0ac07797281bd0c2eec
+MD5 3302b6489ac314c6ad251e82db9ef55a djvu-3.5.20-r1.ebuild 3481
+RMD160 c96edaf41b0f370b836ac32a507adc38cf2a5a9a djvu-3.5.20-r1.ebuild 3481
+SHA256 8bd58745bc41e8d2f40021b396c5e39fed893fb546eff0ac07797281bd0c2eec djvu-3.5.20-r1.ebuild 3481
EBUILD djvu-3.5.20.ebuild 3167 RMD160 a8cae0ea70aa1fa6a4f4cc8caa3dfdd80acb1695 SHA1 232c6b546cbb7034e81c3f15c25ba0d4971c2b34 SHA256 0f2521ad9bf2b21617b470adefe2913108c1e26759a2d9aa0378ce322729e9cb
MD5 a544e2735c79bd931a91a4a71858e78d djvu-3.5.20.ebuild 3167
RMD160 a8cae0ea70aa1fa6a4f4cc8caa3dfdd80acb1695 djvu-3.5.20.ebuild 3167
SHA256 0f2521ad9bf2b21617b470adefe2913108c1e26759a2d9aa0378ce322729e9cb djvu-3.5.20.ebuild 3167
-MISC ChangeLog 8831 RMD160 c83664678c1d4d4d45b7f91e4d5fbddbc2cd4202 SHA1 2b54b4c6cf6d3a52cd6dbb76349cf361fdafbe07 SHA256 07c081c78972433ebb67ee51da8873272213b0ba882b8f9b9f8e722ea6d9de50
-MD5 514ca01b94257fc39812827af0f29c2e ChangeLog 8831
-RMD160 c83664678c1d4d4d45b7f91e4d5fbddbc2cd4202 ChangeLog 8831
-SHA256 07c081c78972433ebb67ee51da8873272213b0ba882b8f9b9f8e722ea6d9de50 ChangeLog 8831
+MISC ChangeLog 9057 RMD160 c15bba13fb96d0dfbe4b1186bc6077150dfffbd9 SHA1 58e3601802c7e5316dadc94574c16cf78a9ddcd1 SHA256 2458053af51d329089831781437bf1383bd55bb5283480f2186c7c9c5da3142d
+MD5 4e6972e7e030cc297ac00dcd3e339466 ChangeLog 9057
+RMD160 c15bba13fb96d0dfbe4b1186bc6077150dfffbd9 ChangeLog 9057
+SHA256 2458053af51d329089831781437bf1383bd55bb5283480f2186c7c9c5da3142d ChangeLog 9057
MISC metadata.xml 865 RMD160 09cb90b4680856217c680e395e15957263c01472 SHA1 35e8a38a7dbed0d7f547cf21fa5bbb0133591e3d SHA256 13f4ad340f245deb6b5ba0d5ecfd5fe5aa408ff8ef9b2fe37a2f63ffc793c672
MD5 ad8a8096a50ceca743956ec76d0818ef metadata.xml 865
RMD160 09cb90b4680856217c680e395e15957263c01472 metadata.xml 865
@@ -33,3 +37,6 @@ SHA256 68a72e2fd1d6cf67ff769e59191eef47f78757563183a908cb0ec667a374ceb5 files/di
MD5 00f676bee49c97564d1b965f15c66609 files/digest-djvu-3.5.20 253
RMD160 4a48b0c7b50215ae19f310fa3fd915986dff1b72 files/digest-djvu-3.5.20 253
SHA256 b546af157360b36e9707c38de12529910652d3708587164cffe3f2df99400f7e files/digest-djvu-3.5.20 253
+MD5 00f676bee49c97564d1b965f15c66609 files/digest-djvu-3.5.20-r1 253
+RMD160 4a48b0c7b50215ae19f310fa3fd915986dff1b72 files/digest-djvu-3.5.20-r1 253
+SHA256 b546af157360b36e9707c38de12529910652d3708587164cffe3f2df99400f7e files/digest-djvu-3.5.20-r1 253
diff --git a/app-text/djvu/djvu-3.5.20-r1.ebuild b/app-text/djvu/djvu-3.5.20-r1.ebuild
new file mode 100644
index 000000000000..b55f5fc9c2f4
--- /dev/null
+++ b/app-text/djvu/djvu-3.5.20-r1.ebuild
@@ -0,0 +1,130 @@
+# Copyright 1999-2007 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Header: /var/cvsroot/gentoo-x86/app-text/djvu/djvu-3.5.20-r1.ebuild,v 1.1 2007/12/13 09:52:52 pva Exp $
+
+WANT_AUTOCONF="latest"
+WANT_AUTOMAKE="latest"
+inherit fdo-mime nsplugins flag-o-matic eutils multilib toolchain-funcs autotools
+
+MY_P="${PN}libre-${PV}"
+
+DESCRIPTION="DjVu viewers, encoders and utilities."
+HOMEPAGE="http://djvu.sourceforge.net"
+SRC_URI="mirror://sourceforge/djvu/${MY_P}.tar.gz"
+
+LICENSE="GPL-2"
+SLOT="0"
+KEYWORDS="~alpha ~amd64 ~arm ~hppa ~ia64 ~ppc ~ppc64 ~s390 ~sh ~sparc ~x86 ~x86-fbsd"
+IUSE="xml qt3 jpeg tiff debug threads nls nsplugin kde doc"
+
+DEPEND="jpeg? ( >=media-libs/jpeg-6b-r2 )
+ tiff? ( media-libs/tiff )
+ qt3? ( <x11-libs/qt-4 )"
+
+S=${WORKDIR}/${MY_P}
+
+LANGS="cs de fr ja"
+for X in ${LANGS}; do
+ IUSE="${IUSE} linguas_${X}"
+done
+
+pkg_setup() {
+ if ! use qt3; then
+ ewarn
+ ewarn "The standalone djvu viewer, djview, will not be compiled."
+ ewarn "Add \"qt3\" to your USE flags if you want it."
+ ewarn
+ fi
+}
+
+src_unpack() {
+ unpack ${A}
+ cd "${S}"
+
+ # Do not strip binaries as portage does this for us. bug #135208
+ find -name Makefile.in -exec sed -i 's:${INSTALL_PROGRAM} -s:${INSTALL_PROGRAM}:' \{\} \;
+ eautomake
+}
+
+src_compile() {
+ # assembler problems and hence non-building with pentium4
+ # <obz@gentoo.org>
+ replace-flags -march=pentium4 -march=pentium3
+
+ local I18N
+ if use nls; then
+ for X in ${LANGS}; do
+ if use linguas_${X}; then
+ I18N="${I18N} ${X}"
+ fi
+ done
+ I18N="${I18N# }"
+ if test -n "$I18N"; then
+ I18N="--enable-i18n=${I18N}"
+ else
+ I18N="--enable-i18n"
+ fi
+ else
+ I18N="--disable-i18n"
+ fi
+
+ # When enabling qt it must be compiled with threads. See bug #89544.
+ if use qt3 ; then
+ QTCONF=" --with-qt --enable-threads "
+ elif use threads ; then
+ QTCONF=" --without-qt --disable-djview --enable-threads "
+ else
+ QTCONF=" --without-qt --disable-djview --disable-threads "
+ fi
+
+ # We install all desktop files by hand.
+ econf --disable-desktopfiles \
+ $(use_enable xml xmltools) \
+ $(use_with jpeg) \
+ $(use_with tiff) \
+ "${I18N}" \
+ $(use_enable debug) \
+ ${QTCONF} \
+ || die "econf failed"
+
+ if ! use nsplugin; then
+ sed -e 's:nsdejavu::' -i "${S}"/gui/Makefile || die
+ fi
+
+ emake -j1 || die "emake failed"
+}
+
+src_install() {
+ make DESTDIR="${D}" plugindir=/usr/$(get_libdir)/${PLUGINS_DIR} install
+
+ dodoc README TODO NEWS
+
+ use doc && cp -r doc/ "${D}"/usr/share/doc/${PF}
+
+ # Install desktop files.
+ cd desktopfiles
+ insinto /usr/share/icons/hicolor/22x22/mimetypes && newins hi22-djvu.png image-vnd.djvu.png
+ insinto /usr/share/icons/hicolor/32x32/mimetypes && newins hi32-djvu.png image-vnd.djvu.png
+ insinto /usr/share/icons/hicolor/48x48/mimetypes && newins hi48-djvu.png image-vnd.djvu.png
+ insinto /usr/share/mime/packages && doins djvulibre-mime.xml
+ if use kde ; then
+ insinto /usr/share/mimelnk/image && doins vnd.djvu.desktop x-djvu.desktop
+ cp "${D}"/usr/share/mimelnk/image/{vnd.djvu.desktop,x-djvu.desktop}
+ sed -i -e 's:image/vnd.djvu:image/x-djvu:' "${D}"/usr/share/mimelnk/image/x-djvu.desktop
+ fi
+
+ if use qt3 ; then
+ insinto /usr/share/icons/hicolor/32x32/apps && newins hi32-djview3.png djvulibre-djview3.png
+ insinto /usr/share/applications/ && doins djvulibre-djview3.desktop
+ fi
+}
+
+pkg_postinst() {
+ fdo-mime_desktop_database_update
+ fdo-mime_mime_database_update
+}
+
+pkg_postrm() {
+ fdo-mime_desktop_database_update
+ fdo-mime_mime_database_update
+}
diff --git a/app-text/djvu/files/digest-djvu-3.5.20-r1 b/app-text/djvu/files/digest-djvu-3.5.20-r1
new file mode 100644
index 000000000000..2c0705b80cf0
--- /dev/null
+++ b/app-text/djvu/files/digest-djvu-3.5.20-r1
@@ -0,0 +1,3 @@
+MD5 c94091de014b3aaf037d3d0f398d36c2 djvulibre-3.5.20.tar.gz 2416958
+RMD160 fb755064912586585656b9701b7d98bd3019c67b djvulibre-3.5.20.tar.gz 2416958
+SHA256 d937528e10c16831d8df31893ee24da8ec2bfd9e9170671c482a1b1abfc5efc3 djvulibre-3.5.20.tar.gz 2416958