diff options
author | Tom Wijsman <tomwij@gentoo.org> | 2013-03-28 19:17:56 +0000 |
---|---|---|
committer | Tom Wijsman <tomwij@gentoo.org> | 2013-03-28 19:17:56 +0000 |
commit | 257f347efc34ee9bf429d60f5be01088924c9988 (patch) | |
tree | 49c473c1b870e8a70730a681b8baa5b060d8282b /app-misc/subsurface | |
parent | dev-python/sh: Keyword for ~-linux (diff) | |
download | gentoo-2-257f347efc34ee9bf429d60f5be01088924c9988.tar.gz gentoo-2-257f347efc34ee9bf429d60f5be01088924c9988.tar.bz2 gentoo-2-257f347efc34ee9bf429d60f5be01088924c9988.zip |
New package for subsurface, an open source dive log program. Ebuild contributed by Martin Gysel aka bearsh, corrected by Aaron Bauman aka B-Man. Fixes bug #462526.
(Portage version: 2.1.11.59/cvs/Linux x86_64, signed Manifest commit with key 6D34E57D)
Diffstat (limited to 'app-misc/subsurface')
-rw-r--r-- | app-misc/subsurface/ChangeLog | 12 | ||||
-rw-r--r-- | app-misc/subsurface/Manifest | 5 | ||||
-rw-r--r-- | app-misc/subsurface/metadata.xml | 21 | ||||
-rw-r--r-- | app-misc/subsurface/subsurface-3.0.2.ebuild | 106 | ||||
-rw-r--r-- | app-misc/subsurface/subsurface-9999.ebuild | 106 |
5 files changed, 250 insertions, 0 deletions
diff --git a/app-misc/subsurface/ChangeLog b/app-misc/subsurface/ChangeLog new file mode 100644 index 000000000000..0b90933c455d --- /dev/null +++ b/app-misc/subsurface/ChangeLog @@ -0,0 +1,12 @@ +# ChangeLog for app-misc/subsurface +# Copyright 1999-2013 Gentoo Foundation; Distributed under the GPL v2 +# $Header: /var/cvsroot/gentoo-x86/app-misc/subsurface/ChangeLog,v 1.1 2013/03/28 19:17:56 tomwij Exp $ + +*subsurface-3.0.2 (28 Mar 2013) +*subsurface-9999 (28 Mar 2013) + + 28 Mar 2013; Tom Wijsman <TomWij@gentoo.org> +metadata.xml, + +subsurface-3.0.2.ebuild, +subsurface-9999.ebuild: + New package for subsurface, an open source dive log program. Ebuild + contributed by Martin Gysel aka bearsh, corrected by Aaron Bauman aka B-Man. + Fixes bug #462526. diff --git a/app-misc/subsurface/Manifest b/app-misc/subsurface/Manifest new file mode 100644 index 000000000000..ba767598f102 --- /dev/null +++ b/app-misc/subsurface/Manifest @@ -0,0 +1,5 @@ +DIST subsurface-3.0.2.tar.gz 984274 SHA256 41dbb3ca00313019d53b259973f18c6e4cc62b9a9a1a8c5cd5e0d5b911be65c2 SHA512 607d71bd74b2bb9c6ca544de43d2e60ab5468482681f4f4df0e82555a5a6a7b5211ba3ad6463cfaac87b1566dd3cc76b8592d08bd56a8774b67d4eea6bba70bc WHIRLPOOL 536aebd2f23677813f7fb840123b8cdc79519e168bb88c2ff5ec82e2f0150535341a6c9c652954512786a1c292d21f948f6a74d8fcd78125a378043236179cfe +EBUILD subsurface-3.0.2.ebuild 2329 SHA256 ebe5dbffb93755631acd0375fa6799168a54028f9c72bda4f800591dd2f2973a SHA512 97fb3f9a8fb0933a5135b17bcfa2dad05fad94aed3bedacb7cc030cef2f62b0403dde0d87e416579b2ff61f8f6de25441495881ab6e3ef6be51453535e48086b WHIRLPOOL 3802b30c8eeb6f3e65c411d7c547ae560e10453976187becb0ac31e91778b4aea39f4af2b7e271baa26f6f700b195fac76334bb3b5d83b0bdef72e7210400cef +EBUILD subsurface-9999.ebuild 2329 SHA256 ebe5dbffb93755631acd0375fa6799168a54028f9c72bda4f800591dd2f2973a SHA512 97fb3f9a8fb0933a5135b17bcfa2dad05fad94aed3bedacb7cc030cef2f62b0403dde0d87e416579b2ff61f8f6de25441495881ab6e3ef6be51453535e48086b WHIRLPOOL 3802b30c8eeb6f3e65c411d7c547ae560e10453976187becb0ac31e91778b4aea39f4af2b7e271baa26f6f700b195fac76334bb3b5d83b0bdef72e7210400cef +MISC ChangeLog 469 SHA256 8c7d0e5fbd3d00f0f9a126b3efc19e963ec7de7062bc3f2da5fbdd560c5957a2 SHA512 3074edd0dc803165552fde81e97dbedb477093e6ebfc19ace36eb346d8ef054f74b496fe6486d6fab4a60e0d0c647477fd0d212264db1a667cf2dfb68420f10e WHIRLPOOL 1913c8b626a1fc25a1dce8daf99f46c46691887ed13987bbbc0f9778e73cf1e90e02815d4a8a96ba8e38ef113ffcba96cfd3827b8282549a4c998393ca7d66b0 +MISC metadata.xml 704 SHA256 651511ab87f179b00d8e63b952da2b06aa57285ad825b311d4a3d53c2d26fe98 SHA512 32081f05ee28c0c03d74ab491c5ea80a4a00acf8b2c6341539970c57649c62847fe863622051361939ab98d405f64d5338e7e2ade037b14da50cd4a8fdd87d49 WHIRLPOOL 121308c609ff9b997faf2735397ce74eeade4e7bc2c4f44884610d064ce4ab96022661d41799ff6d0b7a8f866415892c390120a90ef14d772b447ac359f121c6 diff --git a/app-misc/subsurface/metadata.xml b/app-misc/subsurface/metadata.xml new file mode 100644 index 000000000000..34a33687934d --- /dev/null +++ b/app-misc/subsurface/metadata.xml @@ -0,0 +1,21 @@ +<?xml version="1.0" encoding="UTF-8"?> +<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd"> +<pkgmetadata> + <maintainer> + <email>bmangentoo@gmail.com</email> + <name>Aaron Bauman</name> + <description>Proxy maintainer. Assign bugs to him.</description> + </maintainer> + <maintainer> + <email>TomWij@gentoo.org</email> + <name>Tom Wijsman</name> + <description>Committer. CC bugs to him.</description> + </maintainer> + <herd>proxy-maintainers</herd> + <longdescription lang="en"> + An open source dive log program. + </longdescription> + <use> + <flag name="map">Adds support for OpenStreetMap maps that can be used with your dive logs.</flag> + </use> +</pkgmetadata> diff --git a/app-misc/subsurface/subsurface-3.0.2.ebuild b/app-misc/subsurface/subsurface-3.0.2.ebuild new file mode 100644 index 000000000000..f6bfae883291 --- /dev/null +++ b/app-misc/subsurface/subsurface-3.0.2.ebuild @@ -0,0 +1,106 @@ +# Copyright 1999-2013 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Header: /var/cvsroot/gentoo-x86/app-misc/subsurface/subsurface-3.0.2.ebuild,v 1.1 2013/03/28 19:17:56 tomwij Exp $ + +EAPI="5" + +if [[ ${PV} = *9999* ]]; then + EGIT_REPO_URI="git://subsurface.hohndel.org/subsurface.git" + GIT_ECLASS="git-2" + KEYWORDS="" + SRC_URI="" + LIBDC_V="0.3.0" +else + #SRC_URI="http://git.hohndel.org/?p=subsurface.git;a=snapshot;h=v${PV};sf=tgz -> ${P}.tar.gz" + SRC_URI="http://subsurface.hohndel.org/downloads/Subsurface-${PV}.tgz -> ${P}.tar.gz" + KEYWORDS="~amd64 ~x86" + LIBDC_V="0.3.0" +fi + +inherit eutils gnome2-utils ${GIT_ECLASS} + +DESCRIPTION="An open source dive log program" +HOMEPAGE="http://subsurface.hohndel.org" +LICENSE="GPL-2" +SLOT="0" +IUSE="doc map usb" + +RDEPEND="dev-libs/glib:2 + dev-libs/libxml2 + dev-libs/libxslt + dev-libs/libzip + gnome-base/gconf:2 + map? ( sci-geosciences/osm-gps-map ) + net-libs/libsoup:2.4 + virtual/libusb + x11-libs/cairo + x11-libs/gdk-pixbuf:2 + x11-libs/gtk+:2 + x11-libs/pango +" +DEPEND="${RDEPEND} + >=dev-libs/libdivecomputer-${LIBDC_V}[static-libs,usb?] + virtual/pkgconfig + doc? ( app-text/asciidoc ) +" + +src_unpack() { + if [[ ${PV} = *9999* ]]; then + git-2_src_unpack + elif [[ "${SRC_URI}" == *git* ]]; then + unpack ${A} + mv subsurface-v${PV}-* ${P} || die "failed to mv the failes to ${P}" + else + mkdir "${P}" && cd "${P}" || die "failed to create/change to ${P}" + unpack ${A} + fi +} + +src_prepare() { + # don't hardcode gcc + sed -i 's|CC\=gcc||' Makefile || die "failed to fix gcc hardcode issues" + # don't hardcode CFLAGS + sed -i 's|CFLAGS\=.*||' Makefile || die "failed to fix hardcoded CFLAGS" + # don't call gtk_update_icon_cache + sed -i -e "s|\$(gtk_update_icon_cache)|:|" Makefile || die "failed to disable gtk_update_icon_cache call" +} + +src_compile() { + emake CC=$(tc-getCC) + if use doc; then + emake doc + fi +} + +src_install() { + default + + # Remove unwanted linguas + local del + for LANG in $(ls "${D}/usr/share/locale"); do + del=1 + for LINGUA in ${LINGUAS}; do + if [[ ${LANG/.UTF-8/} == ${LINGUA} ]]; then + if use linguas_${LINGUA}; then + del=0 + fi + break + fi + done + if [[ ${del} == 1 ]]; then + rm -r "${D}/usr/share/locale/${LANG}" || die "Removing language ${LANG} failed." + fi + done + + if use doc; then + dohtml -r "${S}/Documentation/" + fi +} + +pkg_postinst() { + gnome2_icon_cache_update +} + +pkg_postrm() { + gnome2_icon_cache_update +} diff --git a/app-misc/subsurface/subsurface-9999.ebuild b/app-misc/subsurface/subsurface-9999.ebuild new file mode 100644 index 000000000000..15d351d3dfff --- /dev/null +++ b/app-misc/subsurface/subsurface-9999.ebuild @@ -0,0 +1,106 @@ +# Copyright 1999-2013 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Header: /var/cvsroot/gentoo-x86/app-misc/subsurface/subsurface-9999.ebuild,v 1.1 2013/03/28 19:17:56 tomwij Exp $ + +EAPI="5" + +if [[ ${PV} = *9999* ]]; then + EGIT_REPO_URI="git://subsurface.hohndel.org/subsurface.git" + GIT_ECLASS="git-2" + KEYWORDS="" + SRC_URI="" + LIBDC_V="0.3.0" +else + #SRC_URI="http://git.hohndel.org/?p=subsurface.git;a=snapshot;h=v${PV};sf=tgz -> ${P}.tar.gz" + SRC_URI="http://subsurface.hohndel.org/downloads/Subsurface-${PV}.tgz -> ${P}.tar.gz" + KEYWORDS="~amd64 ~x86" + LIBDC_V="0.3.0" +fi + +inherit eutils gnome2-utils ${GIT_ECLASS} + +DESCRIPTION="An open source dive log program" +HOMEPAGE="http://subsurface.hohndel.org" +LICENSE="GPL-2" +SLOT="0" +IUSE="doc map usb" + +RDEPEND="dev-libs/glib:2 + dev-libs/libxml2 + dev-libs/libxslt + dev-libs/libzip + gnome-base/gconf:2 + map? ( sci-geosciences/osm-gps-map ) + net-libs/libsoup:2.4 + virtual/libusb + x11-libs/cairo + x11-libs/gdk-pixbuf:2 + x11-libs/gtk+:2 + x11-libs/pango +" +DEPEND="${RDEPEND} + >=dev-libs/libdivecomputer-${LIBDC_V}[static-libs,usb?] + virtual/pkgconfig + doc? ( app-text/asciidoc ) +" + +src_unpack() { + if [[ ${PV} = *9999* ]]; then + git-2_src_unpack + elif [[ "${SRC_URI}" == *git* ]]; then + unpack ${A} + mv subsurface-v${PV}-* ${P} || die "failed to mv the failes to ${P}" + else + mkdir "${P}" && cd "${P}" || die "failed to create/change to ${P}" + unpack ${A} + fi +} + +src_prepare() { + # don't hardcode gcc + sed -i 's|CC\=gcc||' Makefile || die "failed to fix gcc hardcode issues" + # don't hardcode CFLAGS + sed -i 's|CFLAGS\=.*||' Makefile || die "failed to fix hardcoded CFLAGS" + # don't call gtk_update_icon_cache + sed -i -e "s|\$(gtk_update_icon_cache)|:|" Makefile || die "failed to disable gtk_update_icon_cache call" +} + +src_compile() { + emake CC=$(tc-getCC) + if use doc; then + emake doc + fi +} + +src_install() { + default + + # Remove unwanted linguas + local del + for LANG in $(ls "${D}/usr/share/locale"); do + del=1 + for LINGUA in ${LINGUAS}; do + if [[ ${LANG/.UTF-8/} == ${LINGUA} ]]; then + if use linguas_${LINGUA}; then + del=0 + fi + break + fi + done + if [[ ${del} == 1 ]]; then + rm -r "${D}/usr/share/locale/${LANG}" || die "Removing language ${LANG} failed." + fi + done + + if use doc; then + dohtml -r "${S}/Documentation/" + fi +} + +pkg_postinst() { + gnome2_icon_cache_update +} + +pkg_postrm() { + gnome2_icon_cache_update +} |