commit:     209bcb0bbc3792c9df0022fe39c2398538ff4648
Author:     Justin Lecher <jlec <AT> gentoo <DOT> org>
AuthorDate: Wed Nov 12 13:56:45 2014 +0000
Commit:     Christoph Junghans <ottxor <AT> gentoo <DOT> org>
CommitDate: Wed Nov 12 13:56:45 2014 +0000
URL:        http://sources.gentoo.org/gitweb/?p=proj/sci.git;a=commit;h=209bcb0b

sci-misc/stanford-tagger: Bump to EAPI=5

Package-Manager: portage-2.2.14

---
 sci-misc/stanford-tagger/ChangeLog                 |  6 +++-
 sci-misc/stanford-tagger/metadata.xml              |  8 +++---
 .../stanford-tagger-20060521.ebuild                | 32 ++++++++++------------
 3 files changed, 23 insertions(+), 23 deletions(-)

diff --git a/sci-misc/stanford-tagger/ChangeLog 
b/sci-misc/stanford-tagger/ChangeLog
index 00cdb3b..d0b0d04 100644
--- a/sci-misc/stanford-tagger/ChangeLog
+++ b/sci-misc/stanford-tagger/ChangeLog
@@ -1,7 +1,11 @@
 # ChangeLog for sci-misc/stanford-tagger
-# Copyright 1999-2011 Gentoo Foundation; Distributed under the GPL v2
+# Copyright 1999-2014 Gentoo Foundation; Distributed under the GPL v2
 # $Header: $
 
+  12 Nov 2014; Justin Lecher <[email protected]> stanford-tagger-20060521.ebuild,
+  metadata.xml:
+  Bump to EAPI=5
+
   25 Oct 2011; Justin Lecher <[email protected]> metadata.xml:
   Removed no-herd from herd tag in metadata.xml
 

diff --git a/sci-misc/stanford-tagger/metadata.xml 
b/sci-misc/stanford-tagger/metadata.xml
index 11655fa..95ef8b6 100644
--- a/sci-misc/stanford-tagger/metadata.xml
+++ b/sci-misc/stanford-tagger/metadata.xml
@@ -1,10 +1,10 @@
 <?xml version="1.0" encoding="UTF-8"?>
 <!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd";>
 <pkgmetadata>
-       <maintainer>
-               <email>[email protected]</email>
-       </maintainer>
-       <longdescription>
+  <maintainer>
+    <email>[email protected]</email>
+  </maintainer>
+  <longdescription>
   University of Stanford’s Natural language pos tagger. Uses log linear
   pos taggers such as Maximum Entropy model tagging.
 </longdescription>

diff --git a/sci-misc/stanford-tagger/stanford-tagger-20060521.ebuild 
b/sci-misc/stanford-tagger/stanford-tagger-20060521.ebuild
index 891b473..200dcdf 100644
--- a/sci-misc/stanford-tagger/stanford-tagger-20060521.ebuild
+++ b/sci-misc/stanford-tagger/stanford-tagger-20060521.ebuild
@@ -2,6 +2,8 @@
 # Distributed under the terms of the GNU General Public License v2
 # $Header: $
 
+EAPI=5
+
 JAVA_PKG_IUSE="doc source"
 inherit java-pkg-2
 
@@ -9,13 +11,11 @@ MY_PV=2006-05-21
 MY_P=postagger-${MY_PV}
 DESCRIPTION="Stanfords log linear POS taggers"
 HOMEPAGE="http://nlp.stanford.edu/software/tagger.shtml";
-
 SRC_URI="http://nlp.stanford.edu/software/${MY_P}.tar.gz";
-LICENSE="GPL-2"
 
+LICENSE="GPL-2"
 SLOT="0"
 KEYWORDS="~x86"
-
 IUSE="${IUSE}"
 
 COMMON_DEP=""
@@ -26,13 +26,15 @@ RDEPEND=">=virtual/jre-1.5
 
 S="${WORKDIR}/${MY_P}"
 
-src_unpack() {
-       unpack ${A}
-       cd "${S}"
+src_prepare() {
        jar xf ${MY_P}-source.jar
-       rm -v ${MY_P}.jar
-       sed -i 's/import edu.stanford.nlp.ling.IndexedFeatureLabe/\/\/\0/g' 
edu/stanford/nlp/stats/Counters.java || die "sed failed"
-       sed -i 's/import 
edu.stanford.nlp.sequences.BeamBestSequenceFinder/\/\/\0/g' 
edu/stanford/nlp/tagger/maxent/TestSentence.java || die "sed failed"
+       rm -v ${MY_P}.jar || die
+       sed \
+               -e 's/import edu.stanford.nlp.ling.IndexedFeatureLabe/\/\/\0/g' 
\
+               -i edu/stanford/nlp/stats/Counters.java || die "sed failed"
+       sed \
+               -e 's/import 
edu.stanford.nlp.sequences.BeamBestSequenceFinder/\/\/\0/g' \
+               -i edu/stanford/nlp/tagger/maxent/TestSentence.java || die "sed 
failed"
 }
 
 src_compile() {
@@ -43,17 +45,11 @@ src_compile() {
 
 src_install() {
        java-pkg_dojar ${PN}.jar
-       dodir /usr/share/${PN}
-       dodir /usr/share/${PN}/wsj3t0-18-bidirectional
        insinto /usr/share/${PN}/wsj3t0-18-bidirectional
-       for f in wsj3t0-18-bidirectional/* ; do
-               doins ${f}
-       done
-       dodir /usr/share/${PN}/wsj3t0-18-left3words
+       doins wsj3t0-18-bidirectional/*
+
        insinto /usr/share/${PN}/wsj3t0-18-left3words
-       for f in wsj3t0-18-left3words/* ; do
-               doins ${f}
-       done
+       doins wsj3t0-18-left3words/*
        if use doc ; then
                java-pkg_dojavadoc javadoc
        fi

Reply via email to