mirror of
https://github.com/yann64/haikuports.git
synced 2026-05-04 22:18:55 +02:00
app-text/odt2txt: new recipe added (GCI 2016) (#939)
This commit is contained in:
49
app-text/odt2txt/odt2txt-0.5.recipe
Normal file
49
app-text/odt2txt/odt2txt-0.5.recipe
Normal file
@@ -0,0 +1,49 @@
|
||||
SUMMARY="A simple converter from OpenDocument Text to plain text"
|
||||
DESCRIPTION="odt2txt is a command-line tool which extracts the text out of \
|
||||
OpenDocument Texts produced by LibreOffice, OpenOffice, StarOfficem, KOffice \
|
||||
and others."
|
||||
HOMEPAGE="https://github.com/dstosberg/odt2txt"
|
||||
COPYRIGHT="2002-2016 Dennis Stosberg"
|
||||
LICENSE="GNU GPL v2"
|
||||
REVISION="1"
|
||||
SOURCE_URI="https://github.com/dstosberg/odt2txt/archive/v$portVersion.tar.gz"
|
||||
CHECKSUM_SHA256="23a889109ca9087a719c638758f14cc3b867a5dcf30a6c90bf6a0985073556dd"
|
||||
PATCHES="odt2txt-$portVersion.patch"
|
||||
|
||||
ARCHITECTURES="x86_gcc2 x86 x86_64"
|
||||
|
||||
PROVIDES="
|
||||
odt2txt = $portVersion
|
||||
cmd:odt2txt = $portVersion
|
||||
"
|
||||
REQUIRES="
|
||||
haiku
|
||||
lib:libiconv
|
||||
lib:libz
|
||||
lib:libzip
|
||||
"
|
||||
|
||||
BUILD_REQUIRES="
|
||||
haiku_devel
|
||||
devel:libiconv
|
||||
devel:libz
|
||||
devel:libzip
|
||||
"
|
||||
BUILD_PREREQUIRES="
|
||||
cmd:gcc
|
||||
cmd:groff
|
||||
cmd:make
|
||||
cmd:pkg_config
|
||||
"
|
||||
|
||||
BUILD()
|
||||
{
|
||||
make HAVE_LIBZIP=1 $jobArgs
|
||||
}
|
||||
|
||||
INSTALL()
|
||||
{
|
||||
# Upstream Makefile has DESTDIR set to /usr/local mistakenly,
|
||||
# hence the need to unset it.
|
||||
make install HAVE_LIBZIP=1 DESTDIR= PREFIX=$prefix MANDIR=$manDir
|
||||
}
|
||||
14
app-text/odt2txt/patches/odt2txt-0.5.patch
Normal file
14
app-text/odt2txt/patches/odt2txt-0.5.patch
Normal file
@@ -0,0 +1,14 @@
|
||||
--- a/Makefile
|
||||
+++ b/Makefile
|
||||
@@ -54,6 +54,11 @@
|
||||
ifeq ($(UNAME_S),NetBSD)
|
||||
CFLAGS += -DICONV_CHAR="const char"
|
||||
endif
|
||||
+ifeq ($(UNAME_S),Haiku)
|
||||
+ # libzip installs headers to a non-standard dir on Haiku
|
||||
+ CFLAGS += $(shell pkg-config --cflags libzip)
|
||||
+ LIBS += -liconv
|
||||
+endif
|
||||
ifeq ($(UNAME_S),SunOS)
|
||||
ifeq ($(CC),cc)
|
||||
ifdef DEBUG
|
||||
Reference in New Issue
Block a user