]> saetta.ns0.it Git - msys2/commitdiff
Pacchettizzata libreptool.
authorAndrea Zagli <azagli@libero.it>
Thu, 2 Oct 2014 09:26:02 +0000 (11:26 +0200)
committerAndrea Zagli <azagli@libero.it>
Thu, 2 Oct 2014 09:26:02 +0000 (11:26 +0200)
packages/mingw-w64-libreptool/.gitignore [new file with mode: 0644]
packages/mingw-w64-libreptool/001-path.patch [new file with mode: 0644]
packages/mingw-w64-libreptool/PKGBUILD [new file with mode: 0644]

diff --git a/packages/mingw-w64-libreptool/.gitignore b/packages/mingw-w64-libreptool/.gitignore
new file mode 100644 (file)
index 0000000..f4507ed
--- /dev/null
@@ -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 (file)
index 0000000..64572d2
--- /dev/null
@@ -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 (file)
index 0000000..489a253
--- /dev/null
@@ -0,0 +1,43 @@
+# Maintainer: Andrea Zagli <andrea.zagli.free@gmail.com>
+
+_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
+}