summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--app-text/kiwix/ChangeLog11
-rw-r--r--app-text/kiwix/Manifest6
-rw-r--r--app-text/kiwix/files/kiwix-0.9-custom-build-flags.patch21
-rw-r--r--app-text/kiwix/files/kiwix-0.9-find-xulrunner.patch11
-rw-r--r--app-text/kiwix/kiwix-0.9_alpha5.ebuild47
-rw-r--r--app-text/kiwix/metadata.xml10
6 files changed, 106 insertions, 0 deletions
diff --git a/app-text/kiwix/ChangeLog b/app-text/kiwix/ChangeLog
new file mode 100644
index 000000000000..e49b483d7fee
--- /dev/null
+++ b/app-text/kiwix/ChangeLog
@@ -0,0 +1,11 @@
+# ChangeLog for app-text/kiwix
+# Copyright 1999-2010 Gentoo Foundation; Distributed under the GPL v2
+# $Header: /var/cvsroot/gentoo-x86/app-text/kiwix/ChangeLog,v 1.1 2010/08/14 14:31:14 chithanh Exp $
+
+*kiwix-0.9_alpha5 (14 Aug 2010)
+
+ 14 Aug 2010; Chí-Thanh Christopher Nguyễn <chithanh@gentoo.org>
+ +kiwix-0.9_alpha5.ebuild, +files/kiwix-0.9-custom-build-flags.patch,
+ +files/kiwix-0.9-find-xulrunner.patch, +metadata.xml:
+ New ebuild by me.
+
diff --git a/app-text/kiwix/Manifest b/app-text/kiwix/Manifest
new file mode 100644
index 000000000000..508d4be4b4c8
--- /dev/null
+++ b/app-text/kiwix/Manifest
@@ -0,0 +1,6 @@
+AUX kiwix-0.9-custom-build-flags.patch 680 RMD160 fcd4cbce8f0c3d95b7c9afec93d9bfea464982e3 SHA1 db83e540c399e785e02db5ec43c6d2410efd8d1f SHA256 43b38e250298cd45747ee30eefeeb4a8de0173212111ddf4d32c194c4d253cc0
+AUX kiwix-0.9-find-xulrunner.patch 301 RMD160 c116ab1b52632003a85fc43defe4982c51198ff1 SHA1 0cbc6e7b47232eb3c8e2f86e6405f3ca41ea95e0 SHA256 9eea81269b4ab994da26917271390a3bbeee09698935348608f8d6bccb9c8205
+DIST kiwix-0.9-alpha5-src.tar.bz2 469065 RMD160 4ed0aaaa512edc144924e2397d040547e01dd53a SHA1 db952a8a914300a30589f1f2c1a561c1ca33bd05 SHA256 3ebcceadcd54f88ac6f54fdf3badaed1f405984c17e0bacf8b5d2556b5b06f17
+EBUILD kiwix-0.9_alpha5.ebuild 1244 RMD160 0d991192b2ead49865e5d07b3dcced5fa18247b9 SHA1 4d87da253d8cf3b88591b9e61812b1ac4927c5c8 SHA256 cf2e2c8e21b3478168f8e7411c0ed524ba0562f3f50dee2c87e9fcd273d7b813
+MISC ChangeLog 453 RMD160 0d682d07bc95b88d3f5d5e93e97f23fb12582e25 SHA1 b66c6a8c80afd640fa62e8e58c67bcfb4c7d5f9e SHA256 8b1a1edfca68a504bbbb05ef932f9c49832b1348905f6c6982834cdaf6aff58f
+MISC metadata.xml 275 RMD160 1b1d48ace7eb30ee16b7cd1c33dd9fa695817f08 SHA1 8e66ce36ba12401c927e1b7394b652962a979a52 SHA256 9fcd14bdea1cdbac9fa4d44a3c9728877d7b87266c3553f6519a7aaec9795009
diff --git a/app-text/kiwix/files/kiwix-0.9-custom-build-flags.patch b/app-text/kiwix/files/kiwix-0.9-custom-build-flags.patch
new file mode 100644
index 000000000000..cb0d4ed2754c
--- /dev/null
+++ b/app-text/kiwix/files/kiwix-0.9-custom-build-flags.patch
@@ -0,0 +1,21 @@
+diff -ur a/configure.ac b/configure.ac
+--- a/configure.ac 2010-08-14 15:37:39.864000026 +0200
++++ b/configure.ac 2010-08-14 15:45:49.650000027 +0200
+@@ -45,8 +45,8 @@
+
+ # default $CPPFLAGS and $LDFLAGS
+ CPPFLAGS=""
+- CFLAGS="-O6"
+- LDFLAGS=""
++ CFLAGS="${CFLAGS}"
++ LDFLAGS="${LDFLAGS}"
+ LIBS=""
+ LD_PATH=""
+ LD_LIBRARY_PATH=""
+@@ -376,4 +376,4 @@
+ # Save the install prefix in the default application preferences
+ sed -i "s/\"kiwix.install.prefix\"\,\ \"[[^\"]]*\"/\"kiwix.install.prefix\"\,\ \"$(echo $prefix | sed -e 's/\\/\\\\/g' -e 's/\//\\\//g' -e 's/&/\\\&/g')\"/" ./kiwix/defaults/preferences/preferences.js
+
+-fi
+\ Kein Zeilenumbruch am Dateiende.
++fi
diff --git a/app-text/kiwix/files/kiwix-0.9-find-xulrunner.patch b/app-text/kiwix/files/kiwix-0.9-find-xulrunner.patch
new file mode 100644
index 000000000000..0037b912fbb0
--- /dev/null
+++ b/app-text/kiwix/files/kiwix-0.9-find-xulrunner.patch
@@ -0,0 +1,11 @@
+diff -ur a/kiwix/kiwix.sh b/kiwix/kiwix.sh
+--- a/kiwix/kiwix.sh 2010-07-07 21:22:12.000000000 +0200
++++ b/kiwix/kiwix.sh 2010-08-14 15:29:20.552000026 +0200
+@@ -1,5 +1,7 @@
+ #!/bin/bash
+
++XULRUNNER=$(echo /usr/bin/xulrunner-1.9*)
++
+ # Original binary
+ BINARY_ORG=$0
+ if [ ! ${BINARY_ORG:0:1} = "/" ]
diff --git a/app-text/kiwix/kiwix-0.9_alpha5.ebuild b/app-text/kiwix/kiwix-0.9_alpha5.ebuild
new file mode 100644
index 000000000000..a7d197c84541
--- /dev/null
+++ b/app-text/kiwix/kiwix-0.9_alpha5.ebuild
@@ -0,0 +1,47 @@
+# Copyright 1999-2010 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Header: /var/cvsroot/gentoo-x86/app-text/kiwix/kiwix-0.9_alpha5.ebuild,v 1.1 2010/08/14 14:31:14 chithanh Exp $
+
+EAPI=3
+
+inherit autotools multilib versionator
+
+MY_P="${PN}-$(replace_version_separator 2 -)-src"
+
+DESCRIPTION="A ZIM reader, especially for offline web content retrieved from Wikipedia"
+HOMEPAGE="http://www.kiwix.org/"
+
+SRC_URI="mirror://sourceforge/${PN}/${MY_P}.tar.bz2"
+LICENSE="GPL-3"
+SLOT="0"
+KEYWORDS="~amd64 ~x86"
+IUSE=""
+
+RDEPEND="app-arch/xz-utils
+ dev-lang/perl
+ dev-libs/icu
+ dev-libs/xapian
+ net-libs/libmicrohttpd
+ net-libs/xulrunner:1.9"
+DEPEND="${RDEPEND}
+ dev-util/pkgconfig"
+
+S=${WORKDIR}/${PN}-$(get_version_component_range 1-2)
+
+src_prepare() {
+ epatch "${FILESDIR}"/${PN}-0.9-find-xulrunner.patch
+ epatch "${FILESDIR}"/${PN}-0.9-custom-build-flags.patch
+ eautoreconf
+}
+
+src_install() {
+ # installation fails without these directories
+ dodir /usr/bin/
+ dodir /usr/$(get_libdir)/
+ dodir /usr/share/
+ ln -s $(get_libdir) "${D}"/usr/lib
+ emake DESTDIR="${D}" install || die
+ # remove that symlink after install, or bad things happen on unmerge
+ rm "${D}"/usr/lib
+ dodoc AUTHORS CHANGELOG README || die
+}
diff --git a/app-text/kiwix/metadata.xml b/app-text/kiwix/metadata.xml
new file mode 100644
index 000000000000..8fe9668040a6
--- /dev/null
+++ b/app-text/kiwix/metadata.xml
@@ -0,0 +1,10 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+ <herd>no-herd</herd>
+ <maintainer>
+ <email>chithanh@gentoo.org</email>
+ <name>Chí-Thanh Christopher Nguyễn</name>
+ </maintainer>
+</pkgmetadata>
+