From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from lists.gentoo.org (pigeon.gentoo.org [208.92.234.80]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by finch.gentoo.org (Postfix) with ESMTPS id 49B341382C5 for ; Mon, 9 Apr 2018 17:54:07 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id 733ABE08EF; Mon, 9 Apr 2018 17:54:06 +0000 (UTC) Received: from smtp.gentoo.org (smtp.gentoo.org [140.211.166.183]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by pigeon.gentoo.org (Postfix) with ESMTPS id 4040AE08EF for ; Mon, 9 Apr 2018 17:54:05 +0000 (UTC) Received: from oystercatcher.gentoo.org (oystercatcher.gentoo.org [148.251.78.52]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.gentoo.org (Postfix) with ESMTPS id 11EFB335C05 for ; Mon, 9 Apr 2018 17:54:04 +0000 (UTC) Received: from localhost.localdomain (localhost [IPv6:::1]) by oystercatcher.gentoo.org (Postfix) with ESMTP id AD70F260 for ; Mon, 9 Apr 2018 17:54:02 +0000 (UTC) From: "Jonas Stein" To: gentoo-commits@lists.gentoo.org Content-Transfer-Encoding: 8bit Content-type: text/plain; charset=UTF-8 Reply-To: gentoo-dev@lists.gentoo.org, "Jonas Stein" Message-ID: <1523296272.78d1f199c40ba158a02b055b79e07d66d708397f.jstein@gentoo> Subject: [gentoo-commits] repo/gentoo:master commit in: app-text/odt2txt/, app-text/odt2txt/files/ X-VCS-Repository: repo/gentoo X-VCS-Files: app-text/odt2txt/Manifest app-text/odt2txt/files/odt2txt-0.5-darwin_iconv.patch app-text/odt2txt/odt2txt-0.5.ebuild X-VCS-Directories: app-text/odt2txt/files/ app-text/odt2txt/ X-VCS-Committer: jstein X-VCS-Committer-Name: Jonas Stein X-VCS-Revision: 78d1f199c40ba158a02b055b79e07d66d708397f X-VCS-Branch: master Date: Mon, 9 Apr 2018 17:54:02 +0000 (UTC) Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: List-Id: Gentoo Linux mail X-BeenThere: gentoo-commits@lists.gentoo.org X-Archives-Salt: b2b26a91-49db-4629-84de-dfcf09e84a2a X-Archives-Hash: b39317848b06b839a2d4a1d88e29817e commit: 78d1f199c40ba158a02b055b79e07d66d708397f Author: Labbe Corentin gmail com> AuthorDate: Mon Apr 9 10:26:58 2018 +0000 Commit: Jonas Stein gentoo org> CommitDate: Mon Apr 9 17:51:12 2018 +0000 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=78d1f199 app-text/odt2txt: bump to 0.5 Closes: https://bugs.gentoo.org/651548 Package-Manager: Portage-2.3.24, Repoman-2.3.6 app-text/odt2txt/Manifest | 1 + .../odt2txt/files/odt2txt-0.5-darwin_iconv.patch | 14 +++++++++ app-text/odt2txt/odt2txt-0.5.ebuild | 34 ++++++++++++++++++++++ 3 files changed, 49 insertions(+) diff --git a/app-text/odt2txt/Manifest b/app-text/odt2txt/Manifest index 4c212d52dc4..f8855f7a053 100644 --- a/app-text/odt2txt/Manifest +++ b/app-text/odt2txt/Manifest @@ -1 +1,2 @@ DIST odt2txt-0.4.tar.gz 23997 BLAKE2B ffa2ac915c1c239cfa7a498fa1597a2462bc7ecd2fb08a90ab50f21a60dbde8abffa52f4b4c40591732f7d497f08774555b36d880214a7708f2c05b692a18908 SHA512 65642dccdb08408e34d484d78be9777aa374cdabbcadd2ab54f43df29db506b136f13e5af720b9b6b6cfdb8508e4fab44159302d35fc002a22979efabf69bfc4 +DIST odt2txt-0.5.tar.gz 24460 BLAKE2B 703dd48447aa38a9a8bc0989231adf6f3dcf2796cb730feef6649cd14bff0265b12d6dba258a2779911f908a8ec322c5543b43222676e78ff12246daa3753b40 SHA512 95d782a088908518191dd0dcd294676fff25c95a2f23a2b8577b8e3adcce2f9d6d5ccaa2a02c7d36be19d05687a4d7a43bed36056c044af0934af810363c7ce0 diff --git a/app-text/odt2txt/files/odt2txt-0.5-darwin_iconv.patch b/app-text/odt2txt/files/odt2txt-0.5-darwin_iconv.patch new file mode 100644 index 00000000000..05957269888 --- /dev/null +++ b/app-text/odt2txt/files/odt2txt-0.5-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/odt2txt-0.5.ebuild b/app-text/odt2txt/odt2txt-0.5.ebuild new file mode 100644 index 00000000000..71f794e3cdf --- /dev/null +++ b/app-text/odt2txt/odt2txt-0.5.ebuild @@ -0,0 +1,34 @@ +# Copyright 1999-2018 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 + +EAPI=6 + +inherit toolchain-funcs + +DESCRIPTION="A simple converter from OpenDocument Text to plain text" +HOMEPAGE="http://stosberg.net/odt2txt/" +SRC_URI="https://github.com/dstosberg/${PN}/archive/v${PV}.tar.gz -> ${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 +" +PATCHES="${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 +}