mirror of
https://github.com/gentoo-mirror/gentoo.git
synced 2026-09-24 04:59:14 -07:00
app-text/odt2txt: bump to 0.5
Closes: https://bugs.gentoo.org/651548 Package-Manager: Portage-2.3.24, Repoman-2.3.6
This commit is contained in:
committed by
Jonas Stein
parent
5b0d6fd52e
commit
78d1f199c4
@@ -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
|
||||
|
||||
14
app-text/odt2txt/files/odt2txt-0.5-darwin_iconv.patch
Normal file
14
app-text/odt2txt/files/odt2txt-0.5-darwin_iconv.patch
Normal file
@@ -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
|
||||
|
||||
34
app-text/odt2txt/odt2txt-0.5.ebuild
Normal file
34
app-text/odt2txt/odt2txt-0.5.ebuild
Normal file
@@ -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
|
||||
}
|
||||
Reference in New Issue
Block a user