diff options
author | 2009-12-09 19:25:03 +0000 | |
---|---|---|
committer | 2009-12-09 19:25:03 +0000 | |
commit | 2e1a5c8db3bcea895e6ed51db18d8052c96a2828 (patch) | |
tree | 3163c6db49ad6c62c662d2de73d98cedceaf630f /app-text | |
parent | x11-base/nouveau-drm: fix download location (diff) | |
download | sunrise-2e1a5c8db3bcea895e6ed51db18d8052c96a2828.tar.gz sunrise-2e1a5c8db3bcea895e6ed51db18d8052c96a2828.tar.bz2 sunrise-2e1a5c8db3bcea895e6ed51db18d8052c96a2828.zip |
app-text/cb2bib: New application, see bug 123627. Thanks to Hugo Mildenberger, Mike Stanbrough, Oliver Putz, Martin Corley, and Maxim Loginov, and to scarabeus, sedzimir, and Tommy[D] on irc.
svn path=/sunrise/; revision=9688
Diffstat (limited to 'app-text')
-rw-r--r-- | app-text/cb2bib/ChangeLog | 11 | ||||
-rw-r--r-- | app-text/cb2bib/Manifest | 6 | ||||
-rw-r--r-- | app-text/cb2bib/cb2bib-1.3.5.ebuild | 65 | ||||
-rw-r--r-- | app-text/cb2bib/files/cb2bib-1.3.5-disable-cbpoll.patch | 43 | ||||
-rw-r--r-- | app-text/cb2bib/files/cb2bib-1.3.5-noqmake.patch | 34 | ||||
-rw-r--r-- | app-text/cb2bib/metadata.xml | 14 |
6 files changed, 173 insertions, 0 deletions
diff --git a/app-text/cb2bib/ChangeLog b/app-text/cb2bib/ChangeLog new file mode 100644 index 000000000..eb4929004 --- /dev/null +++ b/app-text/cb2bib/ChangeLog @@ -0,0 +1,11 @@ +# ChangeLog for app-text/cb2bib +# Copyright 1999-2009 Gentoo Foundation; Distributed under the GPL v2 +# $Header: $ + + 09 Dec 2009; Andreas K. Huettel (dilfridge) <mail@akhuettel.de> + +cb2bib-1.3.5.ebuild, +files/cb2bib-1.3.5-disable-cbpoll.patch, + +files/cb2bib-1.3.5-noqmake.patch, +metadata.xml: + New application, see bug 123627. Thanks to Hugo Mildenberger, Mike + Stanbrough, Oliver Putz, Martin Corley, and Maxim Loginov, and to scarabeus, + sedzimir, and Tommy[D] on irc. + diff --git a/app-text/cb2bib/Manifest b/app-text/cb2bib/Manifest new file mode 100644 index 000000000..6f96d8f1a --- /dev/null +++ b/app-text/cb2bib/Manifest @@ -0,0 +1,6 @@ +AUX cb2bib-1.3.5-disable-cbpoll.patch 2118 RMD160 bf00d7fa87e0f7d7944e1f8ae2391b64c1c9d390 SHA1 b13be5b44c0001533f00b6ac885048803c5c666c SHA256 9f7cb7b9ae7f95411986bdac3e471d4a2931b4a7c391e1ec5f02a369408a1f0c +AUX cb2bib-1.3.5-noqmake.patch 1551 RMD160 789b28adcbe5221a92f45ad1451eb813c845a92a SHA1 00b2e4970c7a50474386bbc6480e8059cda167b5 SHA256 a97ce58d9c0428baefef168988d0975167578d6aaa984a82aef24d3a703e827f +DIST cb2bib-1.3.5.tar.gz 605607 RMD160 c63170b754b99ce088403543ee6a4755f59cbc86 SHA1 208de22120885aff9c5b800484fb1669d7bb12be SHA256 59d6d713f5561c06b9916a196ee2377792dd23f9dcd8b65d85368325b039eb74 +EBUILD cb2bib-1.3.5.ebuild 2309 RMD160 c48b806301770d0f4dcfb70b33c61e320189f0ab SHA1 0b5c9bcd435c99b3f1c80b1659f99d1d3c8de535 SHA256 94def3564a6ec5abe2b81ca819a92ea0e52159e3ab0f73e3d67b6b5307653af7 +MISC ChangeLog 482 RMD160 192828857a6bc172ae0b545870f4472b96a2f63c SHA1 6eef02196fa06510732fe32677b5aef92143ec7c SHA256 e650cc78069beec886819c7d7987251585d3497aafd4871c82e58f62db86f614 +MISC metadata.xml 351 RMD160 8792583cb28727b092e491a56ce67dc5095dacd6 SHA1 568dec7949154c83a72054209b0e55f43f434fdf SHA256 6fd09a630bdf714423512d8ef70b51b08901cfd28b2b5a3f6c45776cc071d138 diff --git a/app-text/cb2bib/cb2bib-1.3.5.ebuild b/app-text/cb2bib/cb2bib-1.3.5.ebuild new file mode 100644 index 000000000..d7fd3e76a --- /dev/null +++ b/app-text/cb2bib/cb2bib-1.3.5.ebuild @@ -0,0 +1,65 @@ +# Copyright 1999-2009 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Header: $ + +EAPI="2" + +inherit qt4 + +DESCRIPTION="Tool for extracting unformatted bibliographic references" +HOMEPAGE="http://www.molspaces.com/cb2bib/" +SRC_URI="http://www.molspaces.com/dl/progs/${P}.tar.gz" + +SLOT="0" +LICENSE="GPL-3" +KEYWORDS="~amd64 ~x86" +IUSE="debug +lzo +poll" + +DEPEND=">=x11-libs/qt-webkit-4.4:4 + x11-libs/libX11 + x11-proto/xproto + lzo? ( dev-libs/lzo )" +RDEPEND="${DEPEND}" + +PATCHES=( "${FILESDIR}/${P}"-{disable-cbpoll,noqmake}.patch ) + +src_configure() { + # The non-standard configure script has only few options, not a matching + # --enable for every --disable, and uses _ instead of - as separator... + # So do things manually... + # We need to unset QTDIR here, else we may end up with qt3 if it is installed. + QTDIR="" ./configure \ + $(use lzo || echo --disable_lzo) \ + $(use poll || echo --disable_cbpoll) \ + --qmakepath /usr/bin/qmake \ + --prefix /usr \ + --bindir /usr/bin \ + --datadir /usr/share \ + --desktopdatadir /usr/share/applications \ + --icondir /usr/share/pixmaps || die "cb2bib provided configure failed" + + # configure is patched not to run qmake itself but just write the commandline + # parameters into a file "qmake-additional-args" + eqmake4 ${PN}.pro $(cat qmake-additional-args) +} + +src_install() { + emake INSTALL_ROOT="${D}" install || die "emake install failed" + + # qmake or src.pro defect: scripts are installed by $(INSTALL_FILE) + # instead of $(INSTALL_PROGRAM), and thus the executable bit becomes + # cleared + fperms +x "/usr/bin/c2bimport" || die + fperms +x "/usr/bin/c2bciter" || die +} + +pkg_postinst() { + elog "For best functionality, emerge the following packages:" + elog " app-text/poppler-utils - for data import from PDF files" + elog " app-text/bibutils - for data import from ISI, endnote format" + elog " media-fonts/jsmath - for displaying mathematical notation" + elog " >=media-libs/exiftool-7.3.1 - for, err, some additional features :)" + elog " app-text/dvipdfm - for data import from DVI files" + elog " virtual/latex-base - to check for BibTeX file correctness and to get" + elog " nice printing through the shell script bib2pdf" +} diff --git a/app-text/cb2bib/files/cb2bib-1.3.5-disable-cbpoll.patch b/app-text/cb2bib/files/cb2bib-1.3.5-disable-cbpoll.patch new file mode 100644 index 000000000..77d055f74 --- /dev/null +++ b/app-text/cb2bib/files/cb2bib-1.3.5-disable-cbpoll.patch @@ -0,0 +1,43 @@ +This patch fixes the --disable_poll configure switch. A stray temporary +file named "tmp.pro" residing in toplevel build directory confused qmake. +Now use sed -i to avoid going through temporaries. + +--- a/configure 2009-12-07 18:13:08.000000000 +0100 ++++ b/configure 2009-12-07 18:19:42.000000000 +0100 +@@ -240,23 +240,22 @@ + #- Setting dirs and start qmake ----------------------------------------------- + + echo +-sed 's%^.*cb2bibdata.path .*$%cb2bibdata.path = '$f_datadir'%g' src/src.pro > tmp.pro +-sed 's%^.*target.path .*$%target.path = '$f_bindir'%g' tmp.pro > src/src.pro +-sed 's%^.*script.path .*$%script.path = '$f_bindir'%g' src/src.pro > tmp.pro +-sed 's%^.*desktop.path .*$%desktop.path = '$f_desktopdatadir'%g' tmp.pro > src/src.pro +-sed 's%^.*icons.path .*$%icons.path = '$f_icondir'%g' src/src.pro > tmp.pro +-mv -f tmp.pro src/src.pro ++sed -i -e 's%^.*cb2bibdata\.path .*$%cb2bibdata.path = '$f_datadir'%g' \ ++ -e 's%^.*target\.path .*$%target.path = '$f_bindir'%g' \ ++ -e 's%^.*script\.path .*$%script.path = '$f_bindir'%g' \ ++ -e 's%^.*desktop\.path .*$%desktop.path = '$f_desktopdatadir'%g' \ ++ -e 's%^.*icons\.path .*$%icons.path = '$f_icondir'%g' src/src.pro ++ + if test "$f_disable_cbpoll" = y; then +- echo "Setting clipboardPoll disabled" +- sed 's% disable_cbpoll%%g' src/src.pro > tmp.pro +- sed 's%^CONFIG.*= %CONFIG += disable_cbpoll %g' tmp.pro > src/src.pro ++ echo "Setting clipboardPoll disabled" ++ sed -i -e 's% disable_cbpoll%%g' \ ++ -e 's%^CONFIG.*= %CONFIG += disable_cbpoll %g' src/src.pro + else +- echo "Setting clipboardPoll enabled (Unix/Linux only)" +- sed 's% disable_cbpoll%%g' src/src.pro > tmp.pro +- mv -f tmp.pro src/src.pro ++ echo "Setting clipboardPoll enabled (Unix/Linux only)" ++ sed -i 's% disable_cbpoll%%g' src/src.pro + fi +-sed 's%^const QString C2B_DATA_DIR.*$%const QString C2B_DATA_DIR("'$f_datadir'/");%g' src/c2b/cb2bib_parameters.h > tmp.par +-mv -f tmp.par src/c2b/cb2bib_parameters.h ++sed -i 's%^const QString C2B_DATA_DIR.*$%const QString C2B_DATA_DIR("'$f_datadir'/");%g' \ ++ src/c2b/cb2bib_parameters.h + + f_configs= + if test "$f_disable_lzo" = y; then diff --git a/app-text/cb2bib/files/cb2bib-1.3.5-noqmake.patch b/app-text/cb2bib/files/cb2bib-1.3.5-noqmake.patch new file mode 100644 index 000000000..0d17a3e90 --- /dev/null +++ b/app-text/cb2bib/files/cb2bib-1.3.5-noqmake.patch @@ -0,0 +1,34 @@ +diff -r -u cb2bib-1.3.5.orig/configure cb2bib-1.3.5/configure +--- cb2bib-1.3.5.orig/configure 2009-10-26 17:50:04.000000000 +0100 ++++ cb2bib-1.3.5/configure 2009-12-06 00:25:02.000000000 +0100 +@@ -264,29 +264,5 @@ + f_configs="-config disable_lzo" + fi + +-if test "$platform" = Darwin; then +-echo "Running $f_qmake -spec macx-g++ $f_configs -o Makefile" +-"$f_qmake" -spec macx-g++ $f_configs -o Makefile +-else +-echo "Running $f_qmake $f_configs -o Makefile" +-"$f_qmake" $f_configs -o Makefile +-fi ++echo $f_configs > qmake-additional-args + +-echo " " +-if test "$f_make" = NO; then +- echo "Configuration ended. 'make' not found." +- echo "Build toolchain might not be completed." +-else +- echo "-----------------------------------------------------------------------" +- echo "Configuration ended. Type 'make' and 'make install'." +- echo "-----------------------------------------------------------------------" +- echo "- NOTE: 'make install' will copy the required runtime files to the" +- echo " specified locations. Besides cb2bib binary, 'make install' will copy" +- echo " the scripts c2bimport and c2bciter, and will set their executable" +- echo " permissions. Also, it will set cb2bib, c2bimport, and c2bciter" +- echo " desktop files." +- echo "-----------------------------------------------------------------------" +- echo "- NOTE: cb2Bib requires lzo library. If it were unavailable in your" +- echo " platform, reconfigure using --disable_lzo." +- echo "-----------------------------------------------------------------------" +-fi diff --git a/app-text/cb2bib/metadata.xml b/app-text/cb2bib/metadata.xml new file mode 100644 index 000000000..47cff23f8 --- /dev/null +++ b/app-text/cb2bib/metadata.xml @@ -0,0 +1,14 @@ +<?xml version="1.0" encoding="UTF-8"?> +<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd"> +<pkgmetadata> + <herd>maintainer-wanted</herd> +<use> + <flag name='lzo'>compile with lzo support</flag> + <flag name='poll'>use clipboard polling</flag> +</use> +<upstream> + <bugs-to>webmaster@molspaces.com</bugs-to> +</upstream> +</pkgmetadata> + + |