diff --git a/srcpkgs/gpsbabel-gui b/srcpkgs/gpsbabel-gui new file mode 120000 index 00000000000..2f617d763ff --- /dev/null +++ b/srcpkgs/gpsbabel-gui @@ -0,0 +1 @@ +./gpsbabel \ No newline at end of file diff --git a/srcpkgs/gpsbabel/patches/A4-doc.txt b/srcpkgs/gpsbabel/patches/A4-doc.txt new file mode 100644 index 00000000000..55bd760f45e --- /dev/null +++ b/srcpkgs/gpsbabel/patches/A4-doc.txt @@ -0,0 +1,15 @@ +--- Makefile.in 2014-04-14 04:29:46.000000000 +0200 ++++ Makefile.in.new 2014-06-15 15:32:23.392644000 +0200 +@@ -252,7 +252,11 @@ + perl xmldoc/makedoc + xmlwf xmldoc/readme.xml #check for well-formedness + xmllint --noout --valid xmldoc/readme.xml #validate +- xsltproc -o $@ xmldoc/babelpdf.xsl xmldoc/readme.xml ++ xsltproc \ ++ -o $@ \ ++ --stringparam paper.type A4 \ ++ xmldoc/babelpdf.xsl \ ++ xmldoc/readme.xml + + gpsbabel.pdf: gpsbabel.fo + fop -q -fo gpsbabel.fo -pdf gpsbabel.pdf diff --git a/srcpkgs/gpsbabel/template b/srcpkgs/gpsbabel/template new file mode 100644 index 00000000000..70d6609e54f --- /dev/null +++ b/srcpkgs/gpsbabel/template @@ -0,0 +1,54 @@ +# Template file for 'gpsbabel' +pkgname=gpsbabel +version=1.5.1 +revision=1 +build_style=gnu-configure +maintainer="Carlo Dormeletti " +homepage="http://www.gpsbabel.org/" +license="GPL-2" +short_desc="GPSBabel converts waypoints, tracks, and routes between popular GPS formats" +configure_args="" +hostmakedepends="perl>=5.18 docbook-xml" +makedepends="qt-devel libusb-compat-devel expat-devel libxml2-devel xmlwf libxslt-devel offo-hyphenation" +distfiles="http://arch.p5n.pp.ru/~sergej/dl/2014/${pkgname}-${version}.tar.gz" +checksum="3feec7d43ca6cb5393645fe0df893d9f7bf5334849fa8abd4c5c3ee775c8cac3" + +do_build(){ + . /etc/profile.d/oracle-jre.sh + make + make doc + cd gui + qmake + make +} + +do_install(){ + make install DESTDIR=${DESTDIR} + vmkdir usr/share/doc/${pkgname} + vcopy "README*" usr/share/doc/${pkgname} + vcopy "AUTHORS" usr/share/doc/${pkgname} + vcopy "COPYING" usr/share/doc/${pkgname} + vcopy "gpsbabel.pdf" usr/share/doc/${pkgname} + vcopy "gpsbabel-sample.ini" usr/share/doc/${pkgname} + vcopy "guibabel" usr/share/doc/${pkgname} + vcopy "style" usr/share/doc/${pkgname} +} + +do_clean() { + # Remove temporary stuff from masterdir + rm -rf ${XBPS_BUILDDIR}/babelweb +} + +gpsbabel-gui_package() { + short_desc+=" - Qt4 GUI" + depends="${pkgname}>=${version}_${revision}" + pkg_install() { + vmkdir usr/bin + vcopy ${wrksrc}/gui/gpsbabelfe usr/bin + vcopy ${wrksrc}/gui/objects/gpsbabelfe-bin usr/bin + vmkdir usr/share/applications + vcopy ${wrksrc}/gui/gpsbabel.desktop usr/share/applications + + } +} +