diff options
Diffstat (limited to 'app-misc/gpligc/gpligc-1.7.ebuild')
-rw-r--r-- | app-misc/gpligc/gpligc-1.7.ebuild | 77 |
1 files changed, 77 insertions, 0 deletions
diff --git a/app-misc/gpligc/gpligc-1.7.ebuild b/app-misc/gpligc/gpligc-1.7.ebuild new file mode 100644 index 000000000..512851aee --- /dev/null +++ b/app-misc/gpligc/gpligc-1.7.ebuild @@ -0,0 +1,77 @@ +# Copyright 1999-2009 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Header: $ + +inherit eutils + +MY_PN="GPLIGC" +MY_P=${MY_PN}-${PV} +DESCRIPTION="provides IGC-file (GPS tracklog) evaluation and 3D visualisation" +HOMEPAGE="http://gpligc.sf.net/" +SRC_URI="http://pc12-c714.uibk.ac.at/GPLIGC/download/${MY_P}-src.tar.gz" + +LICENSE="GPL-2" +SLOT="0" +KEYWORDS="~amd64 ~x86" +IUSE="" + +DEPEND="virtual/opengl + virtual/glut + virtual/glu + media-libs/jpeg" +RDEPEND="${DEPEND} + >=dev-lang/perl-5.6 + dev-perl/perl-tk + sci-visualization/gnuplot" + +# for historical reasons the original tarball has capital letters +# and so has the toplevel directory +S="${WORKDIR}/${MY_P}" + +src_compile() { + cd openGLIGCexplorer + emake CFLAGS="${CFLAGS}" CXXFLAGS="${CXXFLAGS}" || die "Build failed" +} + +src_install() { + # create openGLIGCexplorer data dirs + keepdir /usr/share/${PN}/data/map + keepdir /usr/share/${PN}/data/airspace + keepdir /usr/share/${PN}/data/dem + keepdir /usr/share/${PN}/data/waypoint + + # install binaries and scripts + dobin GPLIGC/{GPLIGC.pl,gpsp2igc.pl,gpsp2igcfile.pl,gpsp2kml.pl} \ + openGLIGCexplorer/{openGLIGCexplorer,createworld,etopo2merger,optimizer} + + # install perl modules and icons/pics and sample configuration + insinto /usr/share/${PN} + doins GPLIGC/{GPLIGCfunctions.pm,GPLIGCwaypoints.pm,gpligc.xbm,icon.png,logo.jpg,logos.gif,logos.jpg} \ + openGLIGCexplorer/.openGLIGCexplorerrc + + dodoc doc/CHANGES + + # at least this pdf is supposed to be used often, so its better left uncompressed + insinto /usr/share/doc/${P} + doins doc/GPLIGC_Manual.pdf + + # paths to perl modules have to be set in scripts/modules + dosed "s:PREFIX:/usr:g" /usr/share/${PN}/.openGLIGCexplorerrc + dosed "s:zzLIBDIRzz:/usr/share/${PN}/:g" /usr/bin/GPLIGC.pl + dosed "s:zzLIBDIRzz:/usr/share/${PN}/:g" /usr/share/${PN}/GPLIGCwaypoints.pm + + # some symlinks + dosym /usr/bin/GPLIGC.pl /usr/bin/GPLIGC + dosym /usr/bin/openGLIGCexplorer /usr/bin/ogie +} + +pkg_postinst() { + echo + elog "Information about using and configuring GPLIGC and" + elog "openGLIGCexplorer (ogie) can be found in the provided manual:" + elog "/usr/share/doc/${P}/GPLIGC_Manual.pdf" + elog "Users should copy ogie's example configuration file from" + elog "/usr/share/${PN}/.openGLIGCexplorerrc to the own HOME directory" + elog "and edit it according to their needs." + echo +} |