commit: 9d804b0e5d332e455de46e698d25734fb4afb014 Author: Luca Molari <molari.luca <AT> gmail <DOT> com> AuthorDate: Sat Feb 14 14:42:28 2015 +0000 Commit: Christoph Junghans <ottxor <AT> gentoo <DOT> org> CommitDate: Sat Feb 14 14:42:28 2015 +0000 URL: http://sources.gentoo.org/gitweb/?p=proj/sci.git;a=commit;h=9d804b0e
projects/sci: dev-util/smartgit: git mercurial optfeatures Package-Manager: portage-2.2.14 --- dev-util/smartgit/ChangeLog | 4 ++++ dev-util/smartgit/metadata.xml | 4 ---- dev-util/smartgit/smartgit-6.5.6.ebuild | 16 +++++++++------- 3 files changed, 13 insertions(+), 11 deletions(-) diff --git a/dev-util/smartgit/ChangeLog b/dev-util/smartgit/ChangeLog index fe25ab2..722b9c1 100644 --- a/dev-util/smartgit/ChangeLog +++ b/dev-util/smartgit/ChangeLog @@ -2,6 +2,10 @@ # Copyright 1999-2015 Gentoo Foundation; Distributed under the GPL v2 # $Header: $ + 14 Feb 2015; Luca Molari <[email protected]> metadata.xml, + smartgit-6.5.6.ebuild: + projects/sci: dev-util/smartgit: git mercurial optfeatures + 13 Feb 2015; Luca Molari (LMolr) <[email protected]> smartgit-6.5.6.ebuild: projects/sci: dev-util/smartgit: set SWT_GTK3 env var diff --git a/dev-util/smartgit/metadata.xml b/dev-util/smartgit/metadata.xml index c29684a..f7716e5 100644 --- a/dev-util/smartgit/metadata.xml +++ b/dev-util/smartgit/metadata.xml @@ -2,8 +2,4 @@ <!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd"> <pkgmetadata> <longdescription>SmartSVN is a powerful GUI SVN client written in Java</longdescription> - <use> - <flag name="git">Enable git support through <pkg>dev-vcs/git</pkg></flag> - <flag name="mercurial">Enable hg support through <pkg>dev-vcs/mercurial</pkg></flag> - </use> </pkgmetadata> diff --git a/dev-util/smartgit/smartgit-6.5.6.ebuild b/dev-util/smartgit/smartgit-6.5.6.ebuild index cabe5af..459b475 100644 --- a/dev-util/smartgit/smartgit-6.5.6.ebuild +++ b/dev-util/smartgit/smartgit-6.5.6.ebuild @@ -16,16 +16,12 @@ SRC_URI="http://www.syntevo.com/download/${PN}/${MY_P}.tar.gz" SLOT="0" LICENSE="smartgit" KEYWORDS="~amd64 ~x86" -IUSE="git mercurial" +IUSE="" RESTRICT="fetch" DEPEND=">=virtual/jre-1.7:1.7" -RDEPEND=" - ${DEPEND} - git? ( dev-vcs/git ) - mercurial? ( dev-vcs/mercurial ) - " +RDEPEND="${DEPEND}" S="${WORKDIR}"/${PN} @@ -39,7 +35,7 @@ src_install() { local rdir="/opt/${PN}" X insinto ${rdir} doins -r * - + java-pkg_register-environment-variable SWT_GTK3 0 java-pkg_regjar "${ED}"/${rdir}/lib/*.jar @@ -53,3 +49,9 @@ src_install() { make_desktop_entry "${PN}" "SmartGIT" ${PN} "Development;RevisionControl" } + +pkg_postinst() { + elog "${PN} relies on external git/hg executables to work." + optfeature "Git support" dev-vcs/git + optfeature "Mercurial support" dev-vcs/mercurial +}
