]> Pileus Git - ~andy/sunrise/commitdiff
app-text/odt2txt: New Ebuild for bug 263574 thanks to hwoarang for reviewing
authorLABBE Corentin (Montjoie) <corentin.labbe@geomatys.fr>
Wed, 11 Aug 2010 14:19:21 +0000 (14:19 +0000)
committerLABBE Corentin (Montjoie) <corentin.labbe@geomatys.fr>
Wed, 11 Aug 2010 14:19:21 +0000 (14:19 +0000)
svn path=/sunrise/; revision=11119

app-text/odt2txt/ChangeLog [new file with mode: 0644]
app-text/odt2txt/Manifest [new file with mode: 0644]
app-text/odt2txt/files/odt2txt-0.4-darwin_iconv.patch [new file with mode: 0644]
app-text/odt2txt/files/odt2txt-0.4-hardened_makefile.patch [new file with mode: 0644]
app-text/odt2txt/metadata.xml [new file with mode: 0644]
app-text/odt2txt/odt2txt-0.4.ebuild [new file with mode: 0644]

diff --git a/app-text/odt2txt/ChangeLog b/app-text/odt2txt/ChangeLog
new file mode 100644 (file)
index 0000000..3d71d09
--- /dev/null
@@ -0,0 +1,9 @@
+# ChangeLog for app-text/odt2txt
+# Copyright 1999-2010 Gentoo Foundation; Distributed under the GPL v2
+# $Header: $
+
+  11 Aug 2010; LABBE Corentin (Montjoie) <corentin.labbe@geomatys.fr
+  +odt2txt-0.4.ebuild, +files/odt2txt-0.4-darwin_iconv.patch,
+  +files/odt2txt-0.4-hardened_makefile.patch, +metadata.xml:
+  New Ebuild for bug 263574 thanks to hwoarang for reviewing
+
diff --git a/app-text/odt2txt/Manifest b/app-text/odt2txt/Manifest
new file mode 100644 (file)
index 0000000..db2f7b3
--- /dev/null
@@ -0,0 +1,6 @@
+AUX odt2txt-0.4-darwin_iconv.patch 366 RMD160 1572f05d3287471118c930f3b7fd9400f05daa48 SHA1 85966e0cab843e683fbae59e698f7f09bc9574f8 SHA256 2ce5183a5f5d64ebb265cfe527b60819e2a06fac17707ccc83f2aece9dccd0e8
+AUX odt2txt-0.4-hardened_makefile.patch 333 RMD160 39ef80988d2c79530ea41d51c9b25d5d73070be9 SHA1 7ffb3c50ffa14e9e710468c6cb823f39601614c2 SHA256 6f00ab22bc2218867d632fa7b54aece3ac2134f1ef66e4cc8bd3a423a2487d92
+DIST odt2txt-0.4.tar.gz 23997 RMD160 bb6ef1a58a6b18f40855be4124e32b1d514e8bca SHA1 331eef1c64cec809a5c7b7cfb972279cc4f9c914 SHA256 a5f4bdf81cdc2afb60fa74ed5da34235eafdc78263f5aaa325193c2bf8d166f8
+EBUILD odt2txt-0.4.ebuild 672 RMD160 cee6de0f55677bae045e31fd6119a0bd0a560297 SHA1 775fcabbe859ab6f864faf7c23803f8dd1bc2b70 SHA256 967974e95282b6701fbe0585b1611c8d4befc9352c6c3923559287d70457b520
+MISC ChangeLog 371 RMD160 f96cf7413ad68147113c36bcbdeb4147f403376d SHA1 4fe51019597a794146e1cad48d49050737913e3b SHA256 54300f0f92f6dcb10dc0946880f150a5d8ab38dd140ed228c328804525304c3e
+MISC metadata.xml 231 RMD160 6aebfea93d789d2b96ea6d8259dc842dd1fdacd3 SHA1 e10a04c4c18a66af326abc1f40c61b28cc610fae SHA256 48054ea190d00518c1e035fc6663b2368854cdea5ff69a94830e4f9a38260987
diff --git a/app-text/odt2txt/files/odt2txt-0.4-darwin_iconv.patch b/app-text/odt2txt/files/odt2txt-0.4-darwin_iconv.patch
new file mode 100644 (file)
index 0000000..0595726
--- /dev/null
@@ -0,0 +1,14 @@
+diff -ur odt2txt-0.4/Makefile odt2txt-0.4/Makefile
+--- odt2txt-0.4/Makefile       2008-06-23 23:32:28 +0400
++++ odt2txt-0.4/Makefile       2010-05-24 15:39:16 +0400
+@@ -56,6 +56,9 @@
+       CFLAGS += -I$(ZLIB_DIR)
+       LIBS = $(ZLIB_DIR)/libz.a
+ endif
++ifeq ($(UNAME_S),Darwin)
++      LIBS += -liconv
++endif
+ ifeq ($(UNAME_O),Cygwin)
+       CFLAGS += -DICONV_CHAR="const char"
+       LIBS += -liconv
+
diff --git a/app-text/odt2txt/files/odt2txt-0.4-hardened_makefile.patch b/app-text/odt2txt/files/odt2txt-0.4-hardened_makefile.patch
new file mode 100644 (file)
index 0000000..aabad38
--- /dev/null
@@ -0,0 +1,12 @@
+--- Makefile.orig      2010-06-09 09:22:44.000000000 +0200
++++ Makefile   2010-06-09 09:26:05.000000000 +0200
+@@ -7,7 +7,8 @@
+ #LDFLAGS = -lefence
+ LDFLAGS += -g
+ else
+-CFLAGS = -O2
++CFLAGS += -O2 -fstack-protector-all -D_FORTIFY_SOURCE=2 -Wformat -Wformat-security -fPIE
++LDFLAGS += -fPIE -pie -Wl,-z,relro,-z,now
+ endif
+ ifdef NO_ICONV
diff --git a/app-text/odt2txt/metadata.xml b/app-text/odt2txt/metadata.xml
new file mode 100644 (file)
index 0000000..c6be580
--- /dev/null
@@ -0,0 +1,6 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+       <herd>no-herd</herd>
+       <maintainer><email>maintainer-wanted@gentoo.org</email></maintainer>
+</pkgmetadata>
diff --git a/app-text/odt2txt/odt2txt-0.4.ebuild b/app-text/odt2txt/odt2txt-0.4.ebuild
new file mode 100644 (file)
index 0000000..24f1361
--- /dev/null
@@ -0,0 +1,31 @@
+# Copyright 1999-2010 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Header: $
+
+EAPI=2
+
+inherit eutils
+
+DESCRIPTION="A simple converter from OpenDocument Text to plain text"
+HOMEPAGE="http://stosberg.net/odt2txt/"
+SRC_URI="http://stosberg.net/odt2txt/${P}.tar.gz"
+
+LICENSE="GPL-2"
+SLOT="0"
+KEYWORDS="~amd64 ~x86 ~x86-macos"
+IUSE=""
+
+RDEPEND="sys-libs/zlib
+       virtual/libiconv"
+DEPEND="sys-apps/groff
+       $RDEPEND"
+
+src_prepare() {
+       epatch "${FILESDIR}"/${P}-hardened_makefile.patch || die
+       epatch "${FILESDIR}"/${P}-darwin_iconv.patch || die
+}
+
+src_install() {
+       emake install DESTDIR="${D}" PREFIX=/usr || die
+       doman odt2txt.1 || die
+}