public inbox for gentoo-commits@lists.gentoo.org
 help / color / mirror / Atom feed
From: "James Le Cuirot" <chewi@gentoo.org>
To: gentoo-commits@lists.gentoo.org
Subject: [gentoo-commits] repo/gentoo:master commit in: app-eselect/eselect-maven/, app-eselect/eselect-maven/files/
Date: Thu, 25 Feb 2016 19:55:27 +0000 (UTC)	[thread overview]
Message-ID: <1456430001.ecc4faa4abfa5bc5e2e99e8419a4e4e520581413.chewi@gentoo> (raw)

commit:     ecc4faa4abfa5bc5e2e99e8419a4e4e520581413
Author:     James Le Cuirot <chewi <AT> gentoo <DOT> org>
AuthorDate: Thu Feb 25 19:53:21 2016 +0000
Commit:     James Le Cuirot <chewi <AT> gentoo <DOT> org>
CommitDate: Thu Feb 25 19:53:21 2016 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=ecc4faa4

app-eselect/eselect-maven: Remove obsolete package

 .../eselect-maven/eselect-maven-0.2-r1.ebuild      |  30 ----
 .../eselect-maven/eselect-maven-0.2-r3.ebuild      |  30 ----
 app-eselect/eselect-maven/files/maven-0.2.eselect  | 175 ---------------------
 app-eselect/eselect-maven/metadata.xml             |   8 -
 4 files changed, 243 deletions(-)

diff --git a/app-eselect/eselect-maven/eselect-maven-0.2-r1.ebuild b/app-eselect/eselect-maven/eselect-maven-0.2-r1.ebuild
deleted file mode 100644
index a338747..0000000
--- a/app-eselect/eselect-maven/eselect-maven-0.2-r1.ebuild
+++ /dev/null
@@ -1,30 +0,0 @@
-# Copyright 1999-2016 Gentoo Foundation
-# Distributed under the terms of the GNU General Public License v2
-# $Id$
-
-EAPI=3
-
-DESCRIPTION="Manages Maven symlinks"
-HOMEPAGE="https://www.gentoo.org/"
-SRC_URI=""
-
-LICENSE="GPL-2"
-SLOT="0"
-KEYWORDS="amd64 x86 ~amd64-linux ~x86-linux ~ppc-macos ~x64-macos ~x86-macos"
-IUSE=""
-
-RDEPEND=">=app-admin/eselect-1.2.8
-	!<dev-java/maven-bin-2.0.10-r1:2.1
-	!app-eselect/eselect-java"
-PDEPEND="
-|| (
-	dev-java/maven-bin:3.0
-	dev-java/maven-bin:2.2
-	dev-java/maven-bin:2.0
-)"
-
-src_install() {
-	insinto /usr/share/eselect/modules
-	newins "${FILESDIR}/maven-${PV}.eselect" maven.eselect \
-		|| die "newins failed"
-}

diff --git a/app-eselect/eselect-maven/eselect-maven-0.2-r3.ebuild b/app-eselect/eselect-maven/eselect-maven-0.2-r3.ebuild
deleted file mode 100644
index 1029d2d..0000000
--- a/app-eselect/eselect-maven/eselect-maven-0.2-r3.ebuild
+++ /dev/null
@@ -1,30 +0,0 @@
-# Copyright 1999-2015 Gentoo Foundation
-# Distributed under the terms of the GNU General Public License v2
-# $Id$
-
-EAPI=5
-
-DESCRIPTION="Manages Maven symlinks"
-HOMEPAGE="https://www.gentoo.org/"
-SRC_URI=""
-
-LICENSE="GPL-2"
-SLOT="0"
-KEYWORDS="~amd64 ~x86 ~amd64-linux ~x86-linux ~ppc-macos ~x64-macos ~x86-macos"
-IUSE=""
-
-RDEPEND=">=app-admin/eselect-1.2.8
-	!<dev-java/maven-bin-2.0.10-r1:2.1
-	!app-eselect/eselect-java"
-PDEPEND="
-|| (
-	dev-java/maven-bin:3.1
-	dev-java/maven-bin:3.2
-	dev-java/maven-bin:3.3
-)"
-
-src_install() {
-	insinto /usr/share/eselect/modules
-	newins "${FILESDIR}/maven-${PV}.eselect" maven.eselect \
-		|| die "newins failed"
-}

diff --git a/app-eselect/eselect-maven/files/maven-0.2.eselect b/app-eselect/eselect-maven/files/maven-0.2.eselect
deleted file mode 100644
index bdc35c9..0000000
--- a/app-eselect/eselect-maven/files/maven-0.2.eselect
+++ /dev/null
@@ -1,175 +0,0 @@
-# -*-eselect-*-  vim: ft=eselect
-# Copyright 1999-2015 Gentoo Foundation
-# Distributed under the terms of the GNU General Public License v2
-# $Id$
-
-DESCRIPTION="Manage Maven targets"
-MAINTAINER="java@gentoo.org"
-VERSION="0.2"
-
-MVN="${EROOT}/usr/bin/mvn"
-
-# find a list of mvn symlink targets, best first.
-find_targets() {
-	for f in $(ls -r "${MVN}"-[0-9]* 2> /dev/null) ; do
-		if [[ -f "${f}" ]] ; then
-			echo $(basename "${f}")
-		fi
-	done
-}
-
-# get a named or numbered target.
-find_target() {
-	local target=${1}
-
-	if is_number "${target}" && [[ ${target} -ge 1 ]] ; then
-		targets=( $(find_targets ) )
-		[[ -z "${targets}" ]] && die -q "No targets found!"
-		target=${targets[target-1]}
-	fi
-
-	if [[ "${target}" = mvn-[0-9]* ]] && [[ -f "${EROOT}/usr/bin/${target}" ]] ; then
-		echo ${target}
-	else
-		die -q "Target \"${1}\" doesn't appear to be valid!"
-	fi
-}
-
-# try to remove the mvn symlink.
-remove_symlink() {
-	rm "${MVN}" &>/dev/null
-}
-
-# determine the current target.
-get_target() {
-	local canonicalised=$(canonicalise "${MVN}")
-	echo $(basename "${canonicalised}")
-}
-
-# set the Maven symlink.
-set_symlink() {
-	local target=$(find_target "${1}")
-	remove_symlink
-	ln -s "${target}" "${MVN}" || die "Couldn't set ${target} symlink."
-}
-
-### show action ###
-
-describe_show() {
-	echo "Show current Maven target"
-}
-
-do_show() {
-	if [[ ${#} -gt 0 ]]; then
-		die -q "No parameters allowed."
-	fi
-
-	if [[ -L "${MVN}" ]] ; then
-		get_target
-		return 0
-	elif [[ -e "${MVN}" ]] ; then
-		echo "(not a symlink)" >&2
-		return 1
-	else
-		echo "(unset)" >&2
-		return 1
-	fi
-}
-
-### list action ###
-
-describe_list() {
-	echo "List available Maven targets"
-}
-
-do_list() {
-	if [[ ${#} -gt 0 ]]; then
-		die -q "Usage error: no parameters allowed."
-	fi
-
-	local i targets
-	targets=( $(find_targets) )
-
-	for (( i = 0; i < ${#targets[@]}; i++ )); do
-		[[ ${targets[i]} = $(basename "$(canonicalise "${MVN}")") ]] \
-			&& targets[i]=$(highlight_marker "${targets[i]}")
-	done
-
-	write_list_start "Available Maven targets:"
-	write_numbered_list -m "(none found)" "${targets[@]}"
-}
-
-### set action ###
-
-describe_set() {
-	echo "Set a new Maven target"
-}
-
-describe_set_options() {
-	echo "target : Target name or number (from 'list' action)"
-}
-
-describe_set_parameters() {
-	echo "<target>"
-}
-
-do_set() {
-	if [[ $# -gt 1 ]]; then
-		die -q "Too many parameters. Expected only one."
-	fi
-
-	local target=${1}
-
-	if [[ -z "${target}" ]] ; then
-		die -q "You didn't give me a target name or number."
-	elif [[ -L "${MVN}" ]] ; then
-		if ! remove_symlink ; then
-			die -q "Can't remove existing Maven provider."
-		elif ! set_symlink "${1}" ; then
-			die -q "Can't set new Maven provider."
-		fi
-	elif [[ -e "${MVN}" ]] ; then
-		write_warning_msg "Can't set a new Maven provider. There's a file in the way at ${MVN}. You can try removing it manually, and then re-running this command."
-	else
-		set_symlink "${target}" || die -q "Wasn't able to set a new provider."
-	fi
-}
-
-### update action ###
-
-describe_update() {
-	echo "Set the Maven target to the latest if the current target is invalid or if the given target is the latest"
-}
-
-describe_update_options() {
-	echo "target (optional) : Target name (from 'list' action)"
-}
-
-describe_update_parameters() {
-	echo "<target>"
-}
-
-do_update() {
-	if [[ $# -gt 1 ]] ; then
-		die -q "Too many parameters. Expected only one."
-	fi
-
-	# For pkg_postrm
-	if [[ ! $(find_targets) ]]; then
-		remove_symlink
-		return
-	fi
-
-	local canonicalised=$(canonicalise "${MVN}")
-
-	if [[ ! -L "${MVN}" ]] || [[ ! -f "${canonicalised}" ]] ; then
-		do_set 1
-	elif [[ -n "${1}" ]] ; then
-		# Check whether target name is valid.
-		find_target "${1}" > /dev/null
-
-		if [[ "${1}" == "$(find_target 1)" ]] ; then
-			do_set 1
-		fi
-	fi
-}

diff --git a/app-eselect/eselect-maven/metadata.xml b/app-eselect/eselect-maven/metadata.xml
deleted file mode 100644
index 952a4b9..0000000
--- a/app-eselect/eselect-maven/metadata.xml
+++ /dev/null
@@ -1,8 +0,0 @@
-<?xml version="1.0" encoding="UTF-8"?>
-<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
-<pkgmetadata>
-	<maintainer type="project">
-		<email>java@gentoo.org</email>
-		<name>Java</name>
-	</maintainer>
-</pkgmetadata>


                 reply	other threads:[~2016-02-25 19:55 UTC|newest]

Thread overview: [no followups] expand[flat|nested]  mbox.gz  Atom feed

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=1456430001.ecc4faa4abfa5bc5e2e99e8419a4e4e520581413.chewi@gentoo \
    --to=chewi@gentoo.org \
    --cc=gentoo-commits@lists.gentoo.org \
    --cc=gentoo-dev@lists.gentoo.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox