summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChí-Thanh Christopher Nguyễn <chithanh@gentoo.org>2010-08-14 14:31:15 +0000
committerChí-Thanh Christopher Nguyễn <chithanh@gentoo.org>2010-08-14 14:31:15 +0000
commit50e439086666388e61afa76d8cd1341f226ea2ad (patch)
tree4823ff43ce1924b5d2a99c254c240f2b34b0eb4a /app-text/kiwix
parentalpha/arm/ia64/s390/sh/sparc stable wrt #332063 (diff)
downloadgentoo-2-50e439086666388e61afa76d8cd1341f226ea2ad.tar.gz
gentoo-2-50e439086666388e61afa76d8cd1341f226ea2ad.tar.bz2
gentoo-2-50e439086666388e61afa76d8cd1341f226ea2ad.zip
New ebuild by me.
(Portage version: 2.2_rc67/cvs/Linux x86_64)
Diffstat (limited to 'app-text/kiwix')
-rw-r--r--app-text/kiwix/ChangeLog11
-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
5 files changed, 100 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/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>
+