diff options
Diffstat (limited to 'app-text/odt2txt')
-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/metadata.xml | 13 | ||||
-rw-r--r-- | app-text/odt2txt/odt2txt-0.4-r1.ebuild | 37 |
4 files changed, 70 insertions, 0 deletions
diff --git a/app-text/odt2txt/Manifest b/app-text/odt2txt/Manifest new file mode 100644 index 000000000000..9b0c0ab96a7a --- /dev/null +++ b/app-text/odt2txt/Manifest @@ -0,0 +1,6 @@ +AUX odt2txt-0.4-darwin_iconv.patch 366 SHA256 2ce5183a5f5d64ebb265cfe527b60819e2a06fac17707ccc83f2aece9dccd0e8 SHA512 0341c6d4d06b96766e35f55358f26ed52d8eb456f853cd83b098fb3e2adae690bc47090dfd8a1a66f9d24c77586a9fb7151cbe9695dcbdc3f9eef8f5d81b5762 WHIRLPOOL 3eed04e8eeeaae23d191e7d3d0f69a91d959da3327f1234c3966a08d8c9a0d536750dedc528136c06567bc4222be91ee1c3767932a7654646ce45cecdb5891d4 +DIST odt2txt-0.4.tar.gz 23997 SHA256 a5f4bdf81cdc2afb60fa74ed5da34235eafdc78263f5aaa325193c2bf8d166f8 SHA512 65642dccdb08408e34d484d78be9777aa374cdabbcadd2ab54f43df29db506b136f13e5af720b9b6b6cfdb8508e4fab44159302d35fc002a22979efabf69bfc4 WHIRLPOOL 905d6e385325d6943011bd0e3053ee82e503c746ef33760377b5737226a0269b39bdd4656316c7102ed5c7349dc5e86b5d689e7fab72a9ac4c49f255cfced4c2 +EBUILD odt2txt-0.4-r1.ebuild 726 SHA256 8f08201b91075c4ef1133c8444fe57549b708683bf6b7fe31dd803f45f7a599f SHA512 832fffdd8c1f62f71215d804541fe0e041726acc8a1964f3733afad1ad30d08f7fc7075c28ea8d7764225c1dea7cd086343e1b40e345040b9d45594d1911d877 WHIRLPOOL 153a75aebbcecd8d5f1a6de1bbfc1e9fbf5ccc53910631f0a916fc4628c7d0881ba5a40ad3020945ecb321e7a5fd1d255911c8754ac3eae36067da21f1287a63 +MISC ChangeLog 2863 SHA256 4211744bf40e20820e730f012e4df936fb2e77c1a6e1daaafffef256edb887b0 SHA512 86124be8d7fb8f1d2a1ca09f8b8fb985fdfb3672a4421d7e7eb6c97eddbcbda00ff9c7ec06db1361288c587dbfae0e9f2c920d3d3e593bf8e71492cb0e3ad04c WHIRLPOOL a657a700165db6fbcb864d10eee102fcb7862c7e83b27861a6958cbb4ac122acee413c52792fac6c9eea16d39d7c4cff16cd6f28e4bfdf9964c97fd013db259e +MISC ChangeLog-2015 1467 SHA256 c1ce2030030fbf96e9ba4651f451f9babe0b38b73a58a28f2b374655e0b1a057 SHA512 38b7df78bae136c59ddc38873f6b1e62bc36ccd5044c99d5513d39c9a641d36911619c47ad3a3f95a4d4b164338600b17cda614d493d58d02584fb08127519ab WHIRLPOOL fea808723596a2983d8226f59f02b13d5c4c2d711bce6655ac3d2dc74d5a8d2d7fa748ded768969b1022ab8f92936357ccc45d56505c08091aa54183292d29d5 +MISC metadata.xml 429 SHA256 7c6c9b5bf2cf6fbaccb1e5777a28125132f46dcf5679d9149d255480fe632f56 SHA512 b5c6a669512e6cb41edb1be1244d347b9560d9cbbe499db614ecd5e84984a9a9bba5f04f0d8d32fb879fd5b08eaef950f3d65235112481da840a3f1656378156 WHIRLPOOL 9bcb2d31ee505396e048e158f3eae3fdb9bc0fa1eaf8e6edf4887b2ae9b4abf8b3b89013a65d02de02886f3fd1ac082450cc773426d2a12aa331d85704f30b0a 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 000000000000..05957269888e --- /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/metadata.xml b/app-text/odt2txt/metadata.xml new file mode 100644 index 000000000000..21ee5648c0e6 --- /dev/null +++ b/app-text/odt2txt/metadata.xml @@ -0,0 +1,13 @@ +<?xml version="1.0" encoding="UTF-8"?> +<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd"> +<pkgmetadata> +<maintainer type="person"> +<email>clabbe.montjoie@gmail.com</email> +<name>LABBE Corentin (Montjoie)</name> +<description>Maintainer. Assign bugs to him</description> +</maintainer> +<maintainer type="project"> +<email>proxy-maint@gentoo.org</email> +<name>Proxy Maintainers</name> +</maintainer> +</pkgmetadata> diff --git a/app-text/odt2txt/odt2txt-0.4-r1.ebuild b/app-text/odt2txt/odt2txt-0.4-r1.ebuild new file mode 100644 index 000000000000..180584feabd5 --- /dev/null +++ b/app-text/odt2txt/odt2txt-0.4-r1.ebuild @@ -0,0 +1,37 @@ +# Copyright 1999-2012 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 + +EAPI=4 + +inherit eutils toolchain-funcs + +DESCRIPTION="A simple converter from OpenDocument Text to plain text" +HOMEPAGE="http://stosberg.net/odt2txt/" +SRC_URI="http://stosberg.net/${PN}/${P}.tar.gz" + +LICENSE="GPL-2" +SLOT="0" +KEYWORDS="alpha amd64 ia64 ~ppc64 sparc x86 ~x86-macos" +IUSE="" + +RDEPEND=" + !app-office/unoconv + sys-libs/zlib + virtual/libiconv +" +DEPEND="${RDEPEND} + sys-apps/groff +" + +src_prepare() { + epatch "${FILESDIR}"/${P}-darwin_iconv.patch +} + +src_compile() { + emake CC="$(tc-getCC)" CFLAGS="${CFLAGS}" LDFLAGS="${LDFLAGS}" +} + +src_install() { + emake install DESTDIR="${D}" PREFIX=/usr + doman odt2txt.1 +} |