diff options
author | LABBE Corentin (Montjoie) <corentin.labbe@geomatys.fr> | 2010-08-11 14:19:21 +0000 |
---|---|---|
committer | LABBE Corentin (Montjoie) <corentin.labbe@geomatys.fr> | 2010-08-11 14:19:21 +0000 |
commit | 63b2b69768ade326e83ee13cc74ab6f6b2c5df6e (patch) | |
tree | fb3c468954fa49cc17eef3a9c0748dbeb0e6cbb5 /app-text | |
parent | net-news/ canto: Moved to tree by me (diff) | |
download | sunrise-63b2b69768ade326e83ee13cc74ab6f6b2c5df6e.tar.gz sunrise-63b2b69768ade326e83ee13cc74ab6f6b2c5df6e.tar.bz2 sunrise-63b2b69768ade326e83ee13cc74ab6f6b2c5df6e.zip |
app-text/odt2txt: New Ebuild for bug 263574 thanks to hwoarang for reviewing
svn path=/sunrise/; revision=11119
Diffstat (limited to 'app-text')
-rw-r--r-- | app-text/odt2txt/ChangeLog | 9 | ||||
-rw-r--r-- | app-text/odt2txt/Manifest | 6 | ||||
-rw-r--r-- | app-text/odt2txt/files/odt2txt-0.4-darwin_iconv.patch | 14 | ||||
-rw-r--r-- | app-text/odt2txt/files/odt2txt-0.4-hardened_makefile.patch | 12 | ||||
-rw-r--r-- | app-text/odt2txt/metadata.xml | 6 | ||||
-rw-r--r-- | app-text/odt2txt/odt2txt-0.4.ebuild | 31 |
6 files changed, 78 insertions, 0 deletions
diff --git a/app-text/odt2txt/ChangeLog b/app-text/odt2txt/ChangeLog new file mode 100644 index 000000000..3d71d09fd --- /dev/null +++ b/app-text/odt2txt/ChangeLog @@ -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 index 000000000..db2f7b389 --- /dev/null +++ b/app-text/odt2txt/Manifest @@ -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 index 000000000..059572698 --- /dev/null +++ b/app-text/odt2txt/files/odt2txt-0.4-darwin_iconv.patch @@ -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 index 000000000..aabad382c --- /dev/null +++ b/app-text/odt2txt/files/odt2txt-0.4-hardened_makefile.patch @@ -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 index 000000000..c6be58046 --- /dev/null +++ b/app-text/odt2txt/metadata.xml @@ -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 index 000000000..24f1361dd --- /dev/null +++ b/app-text/odt2txt/odt2txt-0.4.ebuild @@ -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 +} |