diff options
-rw-r--r-- | app-text/jabref/Manifest | 7 | ||||
-rw-r--r-- | app-text/jabref/files/jabref-2.8.1-build.xml.patch | 24 | ||||
-rw-r--r-- | app-text/jabref/files/jabref-2.8.1-remove-com.sun.star-import.patch | 10 | ||||
-rw-r--r-- | app-text/jabref/files/jabref-2.8.1-remove-oo-support.patch | 51 | ||||
-rw-r--r-- | app-text/jabref/files/jabref-2.8.1-remove-sciplore-support.patch | 65 | ||||
-rw-r--r-- | app-text/jabref/jabref-2.8.1.ebuild | 96 | ||||
-rw-r--r-- | app-text/jabref/metadata.xml | 7 |
7 files changed, 260 insertions, 0 deletions
diff --git a/app-text/jabref/Manifest b/app-text/jabref/Manifest new file mode 100644 index 0000000..969abe8 --- /dev/null +++ b/app-text/jabref/Manifest @@ -0,0 +1,7 @@ +AUX jabref-2.8.1-build.xml.patch 849 RMD160 ebbe7768db39fb28ca7033948249f500d3980e7a SHA1 3a5077928402096c82d174b590009464eec9fca8 SHA256 2a6d707ca84e0ae81836f7f500c9b10e144efc8ee711413ed35177b387073527 +AUX jabref-2.8.1-remove-com.sun.star-import.patch 423 RMD160 b319252db55d72a3ba8f6e3cba09b9118033cf37 SHA1 1ec0a96325580a1054422e6ff8ac382f86ce3b43 SHA256 ff579e1cb929d113fb23df848a485677bbf5abb019ee640cad15ffac18e3d77d +AUX jabref-2.8.1-remove-oo-support.patch 2622 RMD160 c219dd52d0526fa1f9dc9e479a6d6f8d965f0dcd SHA1 f09bfcbc3949bd87b9bea234189414003bb6bf33 SHA256 91fe5a5fca12f57c5056dc7943427079456884d839b59daee9d041e5c39e03de +AUX jabref-2.8.1-remove-sciplore-support.patch 3619 RMD160 e54a6400ffbb3f7b74d1106829e138737751b569 SHA1 34a69db5c70a9597b8e6f59ade0ddd8122f8e3ce SHA256 41f3a1108234e15c4d7a7681d3213b43a22604657bbca429c1a94823c1f47f39 +DIST JabRef-2.8.1-src.tar.bz2 14185660 RMD160 98dc727bcb83cb85b103c127a4a3add1c928d695 SHA1 d46a31decf5e2f8894c0632d45bf44bd3a2d408a SHA256 5ed7413bc97344c8bddfd48a8ca7a3708a28af05334e88eeecf4a4bfae197e92 +EBUILD jabref-2.8.1.ebuild 2664 RMD160 05d4f9ec49e8ce22d654780759e0829433241f8b SHA1 d13b2b696f15458e93aedb7dd6f2e3dccfb1f7b4 SHA256 21e5eef9bcb3e7bea31820a1f2bc26f2753b22691ea72ad323e18e2c2c9f7b52 +MISC metadata.xml 205 RMD160 4923bb2153d0eb925ffc86f91fdd806110e016c0 SHA1 da9437a648cf7dd5fcfca1c45c60c4053fed15c4 SHA256 2ff0740a5424b0e10c7888541a248d1bd363a60911b0921b4cfe5c36590498ce diff --git a/app-text/jabref/files/jabref-2.8.1-build.xml.patch b/app-text/jabref/files/jabref-2.8.1-build.xml.patch new file mode 100644 index 0000000..181cb1b --- /dev/null +++ b/app-text/jabref/files/jabref-2.8.1-build.xml.patch @@ -0,0 +1,24 @@ +--- /tmp/jabref-2.8.1.orig/build.xml 2012-08-04 21:51:25.631246392 +0300 ++++ build.xml 2012-08-04 21:53:15.375866716 +0300 +@@ -230,7 +230,7 @@ + </target> + + <!-- Jars up project --> +- <target name="jars" depends="build, unjarlib"> ++ <target name="jars" depends="build"> + <mkdir dir="${build.lib}" /> + + <mkdir dir="${build.tmp}" /> +@@ -251,12 +251,6 @@ + <fileset dir="${src.dir}"> + <include name="plugins/**" /> + </fileset> +- <!-- Done by MrDlib --> +- <fileset dir ="${java.dir}"> +- <include name="spl/localization/spljabref.properties"/> +- <include name="spl/gui/ajax-loader.gif"/> +- <include name="spl/gui/mrdlib header.png"/> +- </fileset> + <!-- Done by MrDlib --> + <fileset dir="${lib.dir}"> + <include name="EndNote.zip" /> diff --git a/app-text/jabref/files/jabref-2.8.1-remove-com.sun.star-import.patch b/app-text/jabref/files/jabref-2.8.1-remove-com.sun.star-import.patch new file mode 100644 index 0000000..9e3a6aa --- /dev/null +++ b/app-text/jabref/files/jabref-2.8.1-remove-com.sun.star-import.patch @@ -0,0 +1,10 @@ +--- /tmp/jabref-2.8.1.orig/src/java/net/sf/jabref/imports/BibteXMLImporter.java 2012-08-02 14:53:39.930774523 +0300 ++++ src/java/net/sf/jabref/imports/BibteXMLImporter.java 2012-08-03 19:30:00.105138405 +0300 +@@ -27,7 +27,6 @@ + import javax.xml.parsers.SAXParser; + import javax.xml.parsers.SAXParserFactory; + +-import com.sun.star.logging.LogLevel; + + import net.sf.jabref.BibtexEntry; + import net.sf.jabref.OutputPrinter; diff --git a/app-text/jabref/files/jabref-2.8.1-remove-oo-support.patch b/app-text/jabref/files/jabref-2.8.1-remove-oo-support.patch new file mode 100644 index 0000000..1048057 --- /dev/null +++ b/app-text/jabref/files/jabref-2.8.1-remove-oo-support.patch @@ -0,0 +1,51 @@ +diff -Nru /tmp/jabref-2.8.1.orig/src/java/net/sf/jabref/JabRefFrame.java src/java/net/sf/jabref/JabRefFrame.java +--- /tmp/jabref-2.8.1.orig/src/java/net/sf/jabref/JabRefFrame.java 2012-08-02 14:53:39.921774636 +0300 ++++ src/java/net/sf/jabref/JabRefFrame.java 2012-08-03 19:45:19.902574985 +0300 +@@ -58,7 +58,6 @@ + import net.sf.jabref.label.IncollectionLabelRule; + import net.sf.jabref.label.InproceedingsLabelRule; + import net.sf.jabref.label.LabelMaker; +-import net.sf.jabref.oo.OpenOfficePanel; + import net.sf.jabref.plugin.PluginCore; + import net.sf.jabref.plugin.PluginInstallerAction; + import net.sf.jabref.plugin.core.JabRefPlugin; +@@ -1300,9 +1299,6 @@ + //tools.add(downloadFullText); + tools.add(newSubDatabaseAction); + tools.add(writeXmpAction); +- OpenOfficePanel otp = OpenOfficePanel.getInstance(); +- otp.init(this, sidePaneManager); +- tools.add(otp.getMenuItem()); + tools.add(pushExternalButton.getMenuAction()); + tools.addSeparator(); + tools.add(manageSelectors); +diff -Nru /tmp/jabref-2.8.1.orig/src/java/net/sf/jabref/external/PushToApplicationButton.java src/java/net/sf/jabref/external/PushToApplicationButton.java +--- /tmp/jabref-2.8.1.orig/src/java/net/sf/jabref/external/PushToApplicationButton.java 2012-08-02 14:53:39.945774333 +0300 ++++ src/java/net/sf/jabref/external/PushToApplicationButton.java 2012-08-03 19:45:19.903574972 +0300 +@@ -20,7 +20,6 @@ + import net.sf.jabref.Globals; + import net.sf.jabref.JabRefFrame; + import net.sf.jabref.MnemonicAwareAction; +-import net.sf.jabref.oo.OpenOfficePanel; + import net.sf.jabref.plugin.PluginCore; + import net.sf.jabref.plugin.core.JabRefPlugin; + import net.sf.jabref.plugin.core.generated._JabRefPlugin; +@@ -80,7 +79,6 @@ + applications.add(new PushToWinEdt()); + applications.add(new PushToLatexEditor()); + applications.add(new PushToVim()); +- applications.add(OpenOfficePanel.getInstance()); + + // Finally, sort the entries: + //Collections.sort(applications, new PushToApplicationComparator()); +diff -Nru /tmp/jabref-2.8.1.orig/src/java/net/sf/jabref/imports/BibteXMLImporter.java src/java/net/sf/jabref/imports/BibteXMLImporter.java +--- /tmp/jabref-2.8.1.orig/src/java/net/sf/jabref/imports/BibteXMLImporter.java 2012-08-03 19:43:59.006591985 +0300 ++++ src/java/net/sf/jabref/imports/BibteXMLImporter.java 2012-08-03 19:45:30.588440646 +0300 +@@ -27,7 +27,6 @@ + import javax.xml.parsers.SAXParser; + import javax.xml.parsers.SAXParserFactory; + +-import com.sun.star.logging.LogLevel; + + import net.sf.jabref.BibtexEntry; + import net.sf.jabref.OutputPrinter; diff --git a/app-text/jabref/files/jabref-2.8.1-remove-sciplore-support.patch b/app-text/jabref/files/jabref-2.8.1-remove-sciplore-support.patch new file mode 100644 index 0000000..5daa223 --- /dev/null +++ b/app-text/jabref/files/jabref-2.8.1-remove-sciplore-support.patch @@ -0,0 +1,65 @@ +diff -Nru /tmp/jabref-2.8.1.orig/src/java/net/sf/jabref/JabRefPreferences.java src/java/net/sf/jabref/JabRefPreferences.java +--- /tmp/jabref-2.8.1.orig/src/java/net/sf/jabref/JabRefPreferences.java 2012-06-30 00:13:05.000000000 +0300 ++++ src/java/net/sf/jabref/JabRefPreferences.java 2012-08-04 09:42:45.945241502 +0300 +@@ -441,9 +441,6 @@ + + //defaults.put("keyPattern", new LabelPattern(KEY_PATTERN)); + +- defaults.put(ImportSettingsTab.PREF_IMPORT_ALWAYSUSE, Boolean.FALSE); +- defaults.put(ImportSettingsTab.PREF_IMPORT_DEFAULT_PDF_IMPORT_STYLE, ImportSettingsTab.DEFAULT_STYLE); +- defaults.put(ImportSettingsTab.PREF_IMPORT_FILENAMEPATTERN, ImportSettingsTab.DEFAULT_FILENAMEPATTERNS[0]); + + restoreKeyBindings(); + +diff -Nru /tmp/jabref-2.8.1.orig/src/java/net/sf/jabref/PrefsDialog3.java src/java/net/sf/jabref/PrefsDialog3.java +--- /tmp/jabref-2.8.1.orig/src/java/net/sf/jabref/PrefsDialog3.java 2012-06-30 00:13:05.000000000 +0300 ++++ src/java/net/sf/jabref/PrefsDialog3.java 2012-08-04 09:42:45.946241489 +0300 +@@ -87,7 +87,6 @@ + tabs.add(new TabLabelPattern(prefs, parent.helpDiag)); + tabs.add(new PreviewPrefsTab(prefs)); + tabs.add(new NameFormatterTab(parent.helpDiag)); +- tabs.add(new ImportSettingsTab()); + tabs.add(new XmpPrefsTab()); + tabs.add(new AdvancedTab(prefs, parent.helpDiag)); + +diff -Nru /tmp/jabref-2.8.1.orig/src/java/net/sf/jabref/Util.java src/java/net/sf/jabref/Util.java +--- /tmp/jabref-2.8.1.orig/src/java/net/sf/jabref/Util.java 2012-06-30 00:13:05.000000000 +0300 ++++ src/java/net/sf/jabref/Util.java 2012-08-04 09:43:20.273809935 +0300 +@@ -2949,7 +2949,15 @@ + + public static String getLinkedFileName(BibtexDatabase database, BibtexEntry entry) { + String targetName = entry.getCiteKey() == null ? "default" : entry.getCiteKey(); +- StringReader sr = new StringReader(Globals.prefs.get(ImportSettingsTab.PREF_IMPORT_FILENAMEPATTERN)); ++ //StringReader sr = new StringReader(Globals.prefs.get(ImportSettingsTab.PREF_IMPORT_FILENAMEPATTERN)); ++ /* ++ public final static String[] DEFAULT_FILENAMEPATTERNS = new String[] { ++ "\\bibtexkey", ++ "\\bibtexkey\\begin{title} - \\format[RemoveBrackets]{\\title}\\end{title}" ++ }; ++ defaults.put(ImportSettingsTab.PREF_IMPORT_FILENAMEPATTERN, ImportSettingsTab.DEFAULT_FILENAMEPATTERNS[0]); ++ */ ++ StringReader sr = new StringReader("\\bibtexkey"); + Layout layout = null; + try { + layout = new LayoutHelper(sr).getLayoutFromText(Globals.FORMATTER_PACKAGE); +diff -Nru /tmp/jabref-2.8.1.orig/src/java/net/sf/jabref/groups/EntryTableTransferHandler.java src/java/net/sf/jabref/groups/EntryTableTransferHandler.java +--- /tmp/jabref-2.8.1.orig/src/java/net/sf/jabref/groups/EntryTableTransferHandler.java 2012-06-30 00:13:05.000000000 +0300 ++++ src/java/net/sf/jabref/groups/EntryTableTransferHandler.java 2012-08-04 09:42:45.947241477 +0300 +@@ -45,8 +45,6 @@ + import net.sf.jabref.imports.OpenDatabaseAction; + import net.sf.jabref.imports.ParserResult; + import net.sf.jabref.net.URLDownload; +-import spl.PdfImporter; +-import spl.Tools; + + public class EntryTableTransferHandler extends TransferHandler { + +@@ -379,7 +377,7 @@ + new Thread(new Runnable() { + public void run() { + // Done by MrDlib +- final String[] newfileNames = new PdfImporter(frame, panel, entryTable, dropRow).importPdfFiles(fileNames, frame); ++ final String[] newfileNames = new String[]{}; + if(newfileNames.length > 0){ + loadOrImportFiles(newfileNames, dropRow); + } diff --git a/app-text/jabref/jabref-2.8.1.ebuild b/app-text/jabref/jabref-2.8.1.ebuild new file mode 100644 index 0000000..9daaec7 --- /dev/null +++ b/app-text/jabref/jabref-2.8.1.ebuild @@ -0,0 +1,96 @@ +# Copyright 1999-2011 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Header: $ + +EAPI=4 + +#docs aren't builded correctly? +JAVA_PKG_IUSE="" +inherit eutils java-pkg-2 java-ant-2 + +DESCRIPTION="GUI frontend for BibTeX, written in Java" +HOMEPAGE="http://jabref.sourceforge.net/" +SRC_URI="mirror://sourceforge/${PN}/JabRef-${PV}-src.tar.bz2" + +LICENSE="GPL-2" +SLOT="2.8" +KEYWORDS="~amd64" +IUSE="mysql" + +#do not include antlr-3, use shipped antlr-3.0b5.jar ? +# >=dev-java/antlr-3.1.3:3[java] +CDEPEND="dev-java/spin:0 + dev-java/glazedlists:1.8 + dev-java/jempbox:1.7 + dev-java/pdfbox:1.7 + >=dev-java/antlr-2.7.3:0[java] + >=dev-java/jgoodies-forms-1.1.0:0 + dev-java/jgoodies-looks:2.0 + >=dev-java/microba-0.4.3:0 + dev-java/jempbox:0 + dev-java/pdfbox:0 + dev-java/commons-logging:0 + dev-java/jpf:1.5 + dev-java/jpfcodegen:0 + dev-java/jgoodies-forms:0 + mysql? ( dev-java/jdbc-mysql:0 )" + +RDEPEND=">=virtual/jre-1.6 + ${CDEPEND}" + +DEPEND=">=virtual/jdk-1.6 + ${CDEPEND}" + +S="${WORKDIR}/${P}" + +JAVA_ANT_REWRITE_CLASSPATH="true" +EANT_ANT_TASKS="jarbundler" +EANT_BUILD_TARGET="jars" +EANT_DOC_TARGET="docs" + +#do not include antlr-3, use shipped antlr-3.0b5.jar +EANT_GENTOO_CLASSPATH="antlr,commons-logging,glazedlists-1.8,jempbox-1.7,jgoodies-forms,jgoodies-looks-2.0,jpf-1.5,microba,pdfbox-1.7,spin" +EANT_GENTOO_CLASSPATH_EXTRA="${S}/lib/antlr-3.0b5.jar" + +java_prepare() { + # moves jarbundler definition to where it's needed (not by us) --- ??? + # don't call unjarlib, don't want to absorb deps + # failonerror in jpfcodegen + epatch "${FILESDIR}/${P}-build.xml.patch" + + #preserve some libraries + mkdir libs + mv lib/{plugin,antlr-3.0b5.jar} libs/ + find "${S}/lib" -name '*.jar' -delete + mv libs/{plugin,antlr-3.0b5.jar} lib/ + + #drop open office support + rm -rfv src/java/net/sf/jabref/oo || die + epatch "${FILESDIR}"/${P}-remove-oo-support.patch + + #drop sciplore support + rm -rfv src/java/spl/ src/java/net/sf/jabref/ImportSettingsTab.java || die + epatch "${FILESDIR}"/${P}-remove-sciplore-support.patch +} + +src_install() { + java-pkg_newjar build/lib/JabRef-${PV}.jar + java-pkg_dojar lib/antlr-3.0b5.jar + java-pkg_dojar lib/plugin/JPFCodeGenerator-rt.jar + + #are not builded? Investigate why + #use doc && java-pkg_dojavadoc build/docs/API + dodoc src/txt/README + + java-pkg_dolauncher ${PN} \ + --main net.sf.jabref.JabRef + + dodir /usr/share/${PN}/lib/plugins + keepdir /usr/share/${PN}/lib/plugins + + java-pkg_register-optional-dependency jdbc-mysql + + newicon src/images/JabRef-icon-48.png JabRef-icon.png || die + make_desktop_entry ${PN} JabRef JabRef-icon Office + echo "MimeType=text/x-bibtex" >> "${D}/usr/share/applications/${PN}-${PN}.desktop" +} diff --git a/app-text/jabref/metadata.xml b/app-text/jabref/metadata.xml new file mode 100644 index 0000000..80859ae --- /dev/null +++ b/app-text/jabref/metadata.xml @@ -0,0 +1,7 @@ +<?xml version="1.0" encoding="UTF-8"?> +<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd"> +<pkgmetadata> + <maintainer> + <email>the.dmol@gmail.com</email> + </maintainer> +</pkgmetadata> |