summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRobin H. Johnson <robbat2@gentoo.org>2015-08-08 13:49:04 -0700
committerRobin H. Johnson <robbat2@gentoo.org>2015-08-08 17:38:18 -0700
commit56bd759df1d0c750a065b8c845e93d5dfa6b549d (patch)
tree3f91093cdb475e565ae857f1c5a7fd339e2d781e /app-misc/subsurface
downloadgentoo-56bd759df1d0c750a065b8c845e93d5dfa6b549d.tar.gz
gentoo-56bd759df1d0c750a065b8c845e93d5dfa6b549d.tar.bz2
gentoo-56bd759df1d0c750a065b8c845e93d5dfa6b549d.zip
proj/gentoo: Initial commit
This commit represents a new era for Gentoo: Storing the gentoo-x86 tree in Git, as converted from CVS. This commit is the start of the NEW history. Any historical data is intended to be grafted onto this point. Creation process: 1. Take final CVS checkout snapshot 2. Remove ALL ChangeLog* files 3. Transform all Manifests to thin 4. Remove empty Manifests 5. Convert all stale $Header$/$Id$ CVS keywords to non-expanded Git $Id$ 5.1. Do not touch files with -kb/-ko keyword flags. Signed-off-by: Robin H. Johnson <robbat2@gentoo.org> X-Thanks: Alec Warner <antarus@gentoo.org> - did the GSoC 2006 migration tests X-Thanks: Robin H. Johnson <robbat2@gentoo.org> - infra guy, herding this project X-Thanks: Nguyen Thai Ngoc Duy <pclouds@gentoo.org> - Former Gentoo developer, wrote Git features for the migration X-Thanks: Brian Harring <ferringb@gentoo.org> - wrote much python to improve cvs2svn X-Thanks: Rich Freeman <rich0@gentoo.org> - validation scripts X-Thanks: Patrick Lauer <patrick@gentoo.org> - Gentoo dev, running new 2014 work in migration X-Thanks: Michał Górny <mgorny@gentoo.org> - scripts, QA, nagging X-Thanks: All of other Gentoo developers - many ideas and lots of paint on the bikeshed
Diffstat (limited to 'app-misc/subsurface')
-rw-r--r--app-misc/subsurface/Manifest2
-rw-r--r--app-misc/subsurface/metadata.xml24
-rw-r--r--app-misc/subsurface/subsurface-3.1.1.ebuild110
-rw-r--r--app-misc/subsurface/subsurface-4.2.ebuild76
-rw-r--r--app-misc/subsurface/subsurface-9999.ebuild76
5 files changed, 288 insertions, 0 deletions
diff --git a/app-misc/subsurface/Manifest b/app-misc/subsurface/Manifest
new file mode 100644
index 000000000000..455da8167d7b
--- /dev/null
+++ b/app-misc/subsurface/Manifest
@@ -0,0 +1,2 @@
+DIST Subsurface-4.2.tgz 5029228 SHA256 eb2d9542c7eb69166adef80effe7202afa17970bf7a0d29811eb4f991b3e2294 SHA512 01c930dd1bf663c23d93e85dcf3071d9b0a4f0cf275e8759ad3bd44a7996f21e1a4d783a63b3d96a8df2dab0627ce4ee76fd194382caafb6aba7fd6c2f9a7d16 WHIRLPOOL 063b979d13fd3d084ef09af36453f01e539d1958c9901fc3a21eb6eeedf2d8e6cda5ff8a5fd905e3023dbe41059400864b780cad506730b82834de6f70fe5444
+DIST subsurface-3.1.1.tar.gz 1143335 SHA256 3bbd490871c3ea476943e320e6d7cebdcaebc393503c32ac811cc52c6dfee17b SHA512 b53cd797f803219449cc497b3486660bf873e5c29b2f4e15653c5ae06e1a1884b1a4e2aa79ed67998539dc0c5fd413b1b19f8ad52d8234f74700575cc577b615 WHIRLPOOL 84e123c2bb7a3529e311b35035f3668d70d8913ba08e1460e8f6e6531403b69c03f5993c01a29c284ac9deb5b2c62a614182b0ed209483735b5236a4bc454083
diff --git a/app-misc/subsurface/metadata.xml b/app-misc/subsurface/metadata.xml
new file mode 100644
index 000000000000..e3c5a074c70b
--- /dev/null
+++ b/app-misc/subsurface/metadata.xml
@@ -0,0 +1,24 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+ <maintainer>
+ <email>me@bearsh.org</email>
+ <name>Martin Gysel</name>
+ <description>Proxy maintainer. Assign bugs to him.</description>
+ </maintainer>
+ <maintainer>
+ <email>bauman.aaron@gmail.com</email>
+ <name>Aaron Bauman</name>
+ <description>Proxy maintainer. Please CC bugs to him.</description>
+ </maintainer>
+ <herd>proxy-maintainers</herd>
+ <longdescription lang="en">
+ An open source dive log program.
+ </longdescription>
+ <use>
+ <flag name="linguas_da_DK">Language support for da_DK.</flag>
+ <flag name="linguas_de_CH">Language support for de_CH.</flag>
+ <flag name="linguas_gsw">Language support for gsw.</flag>
+ <flag name="linguas_hr_HR">Language support for hr_HR.</flag>
+ </use>
+</pkgmetadata>
diff --git a/app-misc/subsurface/subsurface-3.1.1.ebuild b/app-misc/subsurface/subsurface-3.1.1.ebuild
new file mode 100644
index 000000000000..b180ac025941
--- /dev/null
+++ b/app-misc/subsurface/subsurface-3.1.1.ebuild
@@ -0,0 +1,110 @@
+# Copyright 1999-2013 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Id$
+
+EAPI="5"
+
+if [[ ${PV} = *9999* ]]; then
+ EGIT_REPO_URI="git://subsurface.hohndel.org/subsurface.git"
+ GIT_ECLASS="git-2"
+ LIBDC_V="0.4.1"
+else
+ SRC_URI="http://subsurface.hohndel.org/downloads/Subsurface-${PV}.tgz -> ${P}.tar.gz"
+ KEYWORDS="~amd64 ~x86"
+ LIBDC_V="0.4.1"
+ S="${WORKDIR}/${P/s/S}"
+fi
+
+inherit eutils gnome2-utils ${GIT_ECLASS}
+
+LINGUAS="bg bg_BG br ca ca_ES da_DK de de_CH de_DE da ee es es_ES et_EE fi fi_FI fr fr_FR gsw hr
+ hr_HR it it_IT nb nb_NO nl nl_NL nn no pl pl_PL pt pt_BR pt_PT ru ru_RU sk sk_SK sv sv_SE"
+
+DESCRIPTION="An open source dive log program"
+HOMEPAGE="http://subsurface.hohndel.org"
+LICENSE="GPL-2"
+SLOT="0"
+IUSE="doc usb"
+for LINGUA in ${LINGUAS}; do
+ IUSE+=" linguas_${LINGUA}"
+done
+
+RDEPEND="dev-db/sqlite:3
+ dev-libs/glib:2
+ dev-libs/libxml2
+ dev-libs/libxslt
+ dev-libs/libzip
+ gnome-base/gconf:2
+ 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
+ else
+ 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
+ cd "Documentation" && emake user-manual.xhtml
+ fi
+}
+
+src_install() {
+ emake DESTDIR="${D}" CC="$(tc-getCC)" install
+
+ # 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-4.2.ebuild b/app-misc/subsurface/subsurface-4.2.ebuild
new file mode 100644
index 000000000000..5f6437ac0fa7
--- /dev/null
+++ b/app-misc/subsurface/subsurface-4.2.ebuild
@@ -0,0 +1,76 @@
+# Copyright 1999-2015 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Id$
+
+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.4.2"
+else
+ MY_P=${P/s/S}
+ SRC_URI="http://subsurface.hohndel.org/downloads/${MY_P}.tgz https://bitbucket.org/bearsh/bearshlay/downloads/${MY_P}.tgz"
+ KEYWORDS="~amd64 ~x86"
+ LIBDC_V="0.4.2"
+fi
+
+PLOCALES="bg_BG da_DK de_CH de_DE el_GR en_GB es_ES et_EE fi_FI fr_FR he hu it_IT
+ lv_LV nb_NO nl_NL pl_PL pt_BR pt_PT ro_RO ru_RU sk_SK sv_SE tr zh_TW
+"
+
+inherit eutils l10n qt4-r2 ${GIT_ECLASS}
+
+DESCRIPTION="An open source dive log program"
+HOMEPAGE="http://subsurface.hohndel.org"
+LICENSE="GPL-2"
+SLOT="0"
+IUSE="debug doc usb"
+
+RDEPEND="dev-db/sqlite:3
+ dev-libs/glib:2
+ >=dev-libs/libdivecomputer-${LIBDC_V}[usb?]
+ dev-libs/libgit2:=
+ dev-libs/libxml2
+ dev-libs/libxslt
+ dev-libs/libzip
+ dev-qt/qtcore:4
+ dev-qt/qtgui:4
+ dev-qt/qtsvg:4
+ dev-qt/qtwebkit:4
+ kde-apps/marble:4
+"
+DEPEND="${RDEPEND}
+ virtual/pkgconfig
+ doc? ( app-text/asciidoc )
+"
+
+DOCS="README"
+
+src_unpack() {
+ if [[ ${PV} = *9999* ]]; then
+ git-2_src_unpack
+ else
+ unpack ${A}
+ mv ${MY_P}* ${P} || die "failed to mv the files to ${P}"
+ fi
+}
+
+rm_trans() {
+ rm "${ED}/usr/share/${PN}/translations/${PN}_${1}.qm" || die "rm ${PN}_${1}.qm failed"
+}
+
+src_install() {
+ qt4-r2_src_install
+
+ l10n_for_each_disabled_locale_do rm_trans
+
+ # this is not a translation but present (no need to die if not present)
+ rm "${ED}/usr/share/${PN}/translations/${PN}_source.qm"
+
+ if ! use doc; then
+ rm -R "${ED}/usr/share/${PN}/Documentation"* || die "rm doc failed"
+ fi
+}
diff --git a/app-misc/subsurface/subsurface-9999.ebuild b/app-misc/subsurface/subsurface-9999.ebuild
new file mode 100644
index 000000000000..5f6437ac0fa7
--- /dev/null
+++ b/app-misc/subsurface/subsurface-9999.ebuild
@@ -0,0 +1,76 @@
+# Copyright 1999-2015 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Id$
+
+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.4.2"
+else
+ MY_P=${P/s/S}
+ SRC_URI="http://subsurface.hohndel.org/downloads/${MY_P}.tgz https://bitbucket.org/bearsh/bearshlay/downloads/${MY_P}.tgz"
+ KEYWORDS="~amd64 ~x86"
+ LIBDC_V="0.4.2"
+fi
+
+PLOCALES="bg_BG da_DK de_CH de_DE el_GR en_GB es_ES et_EE fi_FI fr_FR he hu it_IT
+ lv_LV nb_NO nl_NL pl_PL pt_BR pt_PT ro_RO ru_RU sk_SK sv_SE tr zh_TW
+"
+
+inherit eutils l10n qt4-r2 ${GIT_ECLASS}
+
+DESCRIPTION="An open source dive log program"
+HOMEPAGE="http://subsurface.hohndel.org"
+LICENSE="GPL-2"
+SLOT="0"
+IUSE="debug doc usb"
+
+RDEPEND="dev-db/sqlite:3
+ dev-libs/glib:2
+ >=dev-libs/libdivecomputer-${LIBDC_V}[usb?]
+ dev-libs/libgit2:=
+ dev-libs/libxml2
+ dev-libs/libxslt
+ dev-libs/libzip
+ dev-qt/qtcore:4
+ dev-qt/qtgui:4
+ dev-qt/qtsvg:4
+ dev-qt/qtwebkit:4
+ kde-apps/marble:4
+"
+DEPEND="${RDEPEND}
+ virtual/pkgconfig
+ doc? ( app-text/asciidoc )
+"
+
+DOCS="README"
+
+src_unpack() {
+ if [[ ${PV} = *9999* ]]; then
+ git-2_src_unpack
+ else
+ unpack ${A}
+ mv ${MY_P}* ${P} || die "failed to mv the files to ${P}"
+ fi
+}
+
+rm_trans() {
+ rm "${ED}/usr/share/${PN}/translations/${PN}_${1}.qm" || die "rm ${PN}_${1}.qm failed"
+}
+
+src_install() {
+ qt4-r2_src_install
+
+ l10n_for_each_disabled_locale_do rm_trans
+
+ # this is not a translation but present (no need to die if not present)
+ rm "${ED}/usr/share/${PN}/translations/${PN}_source.qm"
+
+ if ! use doc; then
+ rm -R "${ED}/usr/share/${PN}/Documentation"* || die "rm doc failed"
+ fi
+}