From 9ae87307471abb87e4750dd87f0e641d8a395969 Mon Sep 17 00:00:00 2001 From: Andrea Zagli Date: Thu, 2 Oct 2014 11:26:02 +0200 Subject: [PATCH] Pacchettizzata libreptool. --- packages/mingw-w64-libreptool/.gitignore | 1 + packages/mingw-w64-libreptool/001-path.patch | 29 +++++++++++++ packages/mingw-w64-libreptool/PKGBUILD | 43 ++++++++++++++++++++ 3 files changed, 73 insertions(+) create mode 100644 packages/mingw-w64-libreptool/.gitignore create mode 100644 packages/mingw-w64-libreptool/001-path.patch create mode 100644 packages/mingw-w64-libreptool/PKGBUILD diff --git a/packages/mingw-w64-libreptool/.gitignore b/packages/mingw-w64-libreptool/.gitignore new file mode 100644 index 0000000..f4507ed --- /dev/null +++ b/packages/mingw-w64-libreptool/.gitignore @@ -0,0 +1 @@ +libreptool diff --git a/packages/mingw-w64-libreptool/001-path.patch b/packages/mingw-w64-libreptool/001-path.patch new file mode 100644 index 0000000..64572d2 --- /dev/null +++ b/packages/mingw-w64-libreptool/001-path.patch @@ -0,0 +1,29 @@ +diff --git a/src/Makefile.am b/src/Makefile.am +index b3ec294..b4740e5 100644 +--- a/src/Makefile.am ++++ b/src/Makefile.am +@@ -4,20 +4,20 @@ AM_CPPFLAGS = $(REPTOOL_CFLAGS) \ + -DG_LOG_DOMAIN=\"libreptool\" + + parser.tab.c parser.tab.h: parser.y +- bison -d parser.y ++ bison -d $(srcdir)/parser.y + + lexycal.yy.c lexycal.yy.h: lexycal.fl +- flex -o lexycal.yy.c --header-file=lexycal.yy.h lexycal.fl ++ flex -o $(srcdir)/lexycal.yy.c --header-file=$(srcdir)/lexycal.yy.h $(srcdir)/lexycal.fl + + lib_LTLIBRARIES = libreptool.la + + libreptool_la_LDFLAGS = -no-undefined + + rptmarshal.c: rptmarshal.h reptool_marshal.list $(GLIB_GENMARSHAL) +- $(GLIB_GENMARSHAL) reptool_marshal.list --body --prefix=_rpt_marshal > $@ ++ $(GLIB_GENMARSHAL) $(srcdir)/reptool_marshal.list --body --prefix=_rpt_marshal > $(srcdir)/$@ + + rptmarshal.h: reptool_marshal.list $(GLIB_GENMARSHAL) +- $(GLIB_GENMARSHAL) reptool_marshal.list --header --prefix=_rpt_marshal > $@ ++ $(GLIB_GENMARSHAL) $(srcdir)/reptool_marshal.list --header --prefix=_rpt_marshal > $(srcdir)/$@ + + libreptool_la_SOURCES = \ + parser.tab.c \ diff --git a/packages/mingw-w64-libreptool/PKGBUILD b/packages/mingw-w64-libreptool/PKGBUILD new file mode 100644 index 0000000..489a253 --- /dev/null +++ b/packages/mingw-w64-libreptool/PKGBUILD @@ -0,0 +1,43 @@ +# Maintainer: Andrea Zagli + +_realname=libreptool +pkgname="${MINGW_PACKAGE_PREFIX}-${_realname}" +pkgver=0.5.0 +pkgrel=1 +arch=('any') +pkgdesc="Library to make reports (mingw-w64)" +depends=("${MINGW_PACKAGE_PREFIX}-libgda-full") +makedepends=("${MINGW_PACKAGE_PREFIX}-gcc" + "${MINGW_PACKAGE_PREFIX}-gtk-doc" + "${MINGW_PACKAGE_PREFIX}-gnome-common") +options=('strip' 'staticlibs') +license=("LGPL 2.1") +url="http://saetta.ns0.it/" +source=(git+http://saetta.ns0.it/git/reptool/${_realname}#branch=gtk3 + 001-path.patch) +sha256sums=('SKIP' + '16eb0a92de3527e17e2f9e46189216272203eae89be93ed2e3cbe0b9a0296a22') + +prepare() { + cd ${_realname} + + patch -p1 -i ${srcdir}/001-path.patch +} + +build() { + mkdir -p build-${MINGW_CHOST} + cd build-${MINGW_CHOST} + + ../${_realname}/autogen.sh \ + --host=${MINGW_CHOST} \ + --target=${MINGW_CHOST} \ + --build=${MINGW_CHOST} \ + --prefix=${MINGW_PREFIX} \ + --libexecdir=${MINGW_PREFIX}/lib + make +} + +package() { + cd "$srcdir/build-${MINGW_CHOST}" + make DESTDIR=$pkgdir install +} -- 2.49.0