From: Alistair Bush <ali_bush@gentoo.org>
To: gentoo-java@lists.gentoo.org
Subject: [gentoo-java] EAP1=1 eclass patch
Date: Sat, 22 Mar 2008 20:24:43 +1300 [thread overview]
Message-ID: <47E4B43B.3020909@gentoo.org> (raw)
Ok, here is a patch to support slot dependencies within the
jar-from,getjar and getjars functions.
Its untested at present. But that will change.
Any comments?
> cvs diff java-utils-2.eclass
> Index: java-utils-2.eclass
> ===================================================================
> RCS file: /var/cvsroot/gentoo-x86/eclass/java-utils-2.eclass,v
> retrieving revision 1.104
> diff -u -b -B -r1.104 java-utils-2.eclass
> --- java-utils-2.eclass 3 Mar 2008 17:55:21 -0000 1.104
> +++ java-utils-2.eclass 22 Mar 2008 07:23:10 -0000
> @@ -896,6 +896,10 @@
>
> local target_pkg="${1}" target_jar="${2}" destjar="${3}"
>
> + if[[ ${EAPI} == "1" ]]; then
> + target_pkg="${target_pkg//:/-}"
> + fi
> +
> [[ -z ${target_pkg} ]] && die "Must specify a package"
>
> # default destjar to the target jar
> @@ -1019,6 +1023,11 @@
>
>
> local classpath pkgs="${1}"
> +
> + if[[ ${EAPI} == "1" ]]; then
> + pkgs="${pkgs//:/-}"
> + fi
> +
> jars="$(java-config ${deep} --classpath=${pkgs})"
> [[ $? != 0 || -z "${jars}" ]] && die "java-config --classpath=${pkgs} failed"
> debug-print "${pkgs}:${jars}"
> @@ -1086,6 +1095,11 @@
> [[ ${#} -ne 2 ]] && die "${FUNCNAME} takes only two arguments besides --*"
>
> local pkg="${1}" target_jar="${2}" jar
> +
> + if[[ ${EAPI} == "1" ]]; then
> + pkg="${pkg//:/-}"
> + fi
> +
> [[ -z ${pkg} ]] && die "Must specify package to get a jar from"
> [[ -z ${target_jar} ]] && die "Must specify jar to get"
--
gentoo-java@lists.gentoo.org mailing list
reply other threads:[~2008-03-22 7:25 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=47E4B43B.3020909@gentoo.org \
--to=ali_bush@gentoo.org \
--cc=gentoo-java@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