diff options
author | 2015-08-08 13:49:04 -0700 | |
---|---|---|
committer | 2015-08-08 17:38:18 -0700 | |
commit | 56bd759df1d0c750a065b8c845e93d5dfa6b549d (patch) | |
tree | 3f91093cdb475e565ae857f1c5a7fd339e2d781e /app-text | |
download | gentoo-56bd759df1d0c750a065b8c845e93d5dfa6b549d.tar.gz gentoo-56bd759df1d0c750a065b8c845e93d5dfa6b549d.tar.bz2 gentoo-56bd759df1d0c750a065b8c845e93d5dfa6b549d.zip |
proj/gentoo: Initial commit
This commit represents a new era for Gentoo:
Storing the gentoo-x86 tree in Git, as converted from CVS.
This commit is the start of the NEW history.
Any historical data is intended to be grafted onto this point.
Creation process:
1. Take final CVS checkout snapshot
2. Remove ALL ChangeLog* files
3. Transform all Manifests to thin
4. Remove empty Manifests
5. Convert all stale $Header$/$Id$ CVS keywords to non-expanded Git $Id$
5.1. Do not touch files with -kb/-ko keyword flags.
Signed-off-by: Robin H. Johnson <robbat2@gentoo.org>
X-Thanks: Alec Warner <antarus@gentoo.org> - did the GSoC 2006 migration tests
X-Thanks: Robin H. Johnson <robbat2@gentoo.org> - infra guy, herding this project
X-Thanks: Nguyen Thai Ngoc Duy <pclouds@gentoo.org> - Former Gentoo developer, wrote Git features for the migration
X-Thanks: Brian Harring <ferringb@gentoo.org> - wrote much python to improve cvs2svn
X-Thanks: Rich Freeman <rich0@gentoo.org> - validation scripts
X-Thanks: Patrick Lauer <patrick@gentoo.org> - Gentoo dev, running new 2014 work in migration
X-Thanks: Michał Górny <mgorny@gentoo.org> - scripts, QA, nagging
X-Thanks: All of other Gentoo developers - many ideas and lots of paint on the bikeshed
Diffstat (limited to 'app-text')
1591 files changed, 57440 insertions, 0 deletions
diff --git a/app-text/7plus/7plus-2.25.ebuild b/app-text/7plus/7plus-2.25.ebuild new file mode 100644 index 000000000000..a40c26a36ea2 --- /dev/null +++ b/app-text/7plus/7plus-2.25.ebuild @@ -0,0 +1,36 @@ +# Copyright 1999-2010 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Id$ + +inherit toolchain-funcs + +S="${WORKDIR}/7plsrc.${PV//./}" +DESCRIPTION="An encoder for packet radio" +HOMEPAGE="http://home.t-online.de/home/dg1bbq/7plus.htm" +SRC_URI="http://home.t-online.de/home/dg1bbq/7pl${PV//./}sr.tgz" + +LICENSE="7plus" +SLOT="0" +KEYWORDS="~x86" +IUSE="" + +DEPEND="sys-apps/sed" +RDEPEND="" + +src_unpack() { + unpack ${A} + cd "${S}" + sed -e "s:CC = gcc:CC = $(tc-getCC):" \ + -e "s:= -O2:+=:" \ + -e "s:LDFLAGS = -s:LDFLAGS +=:" linux.mak > Makefile \ + || die "sed Makefile failed" +} + +src_compile() { + emake || die "emake failed" +} + +src_install() { + dobin 7plus || die "dobin failed" + dodoc 7pl_hist.nts 7plh_old.nts format.def +} diff --git a/app-text/7plus/Manifest b/app-text/7plus/Manifest new file mode 100644 index 000000000000..a719a5506a62 --- /dev/null +++ b/app-text/7plus/Manifest @@ -0,0 +1 @@ +DIST 7pl225sr.tgz 65122 SHA256 2d1f8fdd6e514d7e3fdae55a670555d5d30b31c6b14c59ae7af218af7f923e10 SHA512 c1c303b19ed14b3398a8a0c58eb505f03f27e957cfe3cbf2432db115a1efaf6a637e657490079791d245aebf6d2b14497e111b5d5cfd52637f25f135e5008476 WHIRLPOOL 769a758305a67bbfee56b7b2125725b4a5031d4a8d5047d635b45bd414899a28900b707d9b2a04c198511e4676e122e7b30b547d413b2c92eca9bd33fc6eefa7 diff --git a/app-text/7plus/metadata.xml b/app-text/7plus/metadata.xml new file mode 100644 index 000000000000..d9cd2cad66c2 --- /dev/null +++ b/app-text/7plus/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>maintainer-needed@gentoo.org</email> +</maintainer> +</pkgmetadata> diff --git a/app-text/XML-Schema-learner/Manifest b/app-text/XML-Schema-learner/Manifest new file mode 100644 index 000000000000..d0af23ed3992 --- /dev/null +++ b/app-text/XML-Schema-learner/Manifest @@ -0,0 +1,2 @@ +DIST XML-Schema-learner-1.0.0.tar.gz 50690 SHA256 b68fe6c090c3e175e52e0e9f037412eb11725951a54c6a884246fcd2c9465a83 SHA512 aa1b696fbec13d3a345f063e055f77f17832ceb11294a73ac393363684d754f0274ffc59bfc048315bbe2cba8a012cd012ee9ce4f7de12b5695bad60485564bd WHIRLPOOL ddd0afd6056bfa8c617d0a310512d2d4353282f44b8bac140ff299533e689693aa268c189c3c617ecd3e638a00d6994e92e1b6cfa1f8a5c692605f9f12635930 +DIST XML-Schema-learner-1.0.1.tar.gz 51057 SHA256 79e9416db683fee9463ba895283423661e05aa8de2b15c9ea2372c83110ab011 SHA512 f357c1a99ac6a7f807538910dfe5e19b14f789046816d333cb031addfbffc0858fd5641f52dcd7304417d0cf0b6c45d1eb3f2092652c4891c09fc45dd26feb9d WHIRLPOOL 810a51fa5920d46f96e82d018c95e9524dfc85b433fd1579f90a7ff241e6300dc88f166725e68f58a0aac1658fc92ba374da03e3995ed22ba08da23e6003df43 diff --git a/app-text/XML-Schema-learner/XML-Schema-learner-1.0.0.ebuild b/app-text/XML-Schema-learner/XML-Schema-learner-1.0.0.ebuild new file mode 100644 index 000000000000..bc7c09624c91 --- /dev/null +++ b/app-text/XML-Schema-learner/XML-Schema-learner-1.0.0.ebuild @@ -0,0 +1,38 @@ +# Copyright 1999-2015 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Id$ + +EAPI=5 + +DESCRIPTION="Algorithmic inferencing of XML schema definitions and DTDs" +HOMEPAGE="https://github.com/kore/${PN}" +SRC_URI="${HOMEPAGE}/archive/${PV}.tar.gz -> ${P}.tar.gz" + +LICENSE="GPL-3" +SLOT="0" +KEYWORDS="amd64" +IUSE="test" + +# PHP dependency can be inferred from .travis.yml in the repository. +# The necessary USE flags on the other hand were found the hard way. +# +# The dependencies here aren't as expressive as they should be. What we +# really want is for php[...] to apply to everything in PHP_TARGETS, and +# for those interpreters (the ones in PHP_TARGETS) to be used to run the +# test suite. +# +# See bug #497606. +# +RDEPEND="dev-lang/php:*[cli,xml,xmlreader]" +DEPEND="test? ( ${RDEPEND} + dev-php/phpunit )" + +src_compile() { + # Don't run make, the default target is 'check'. + : +} + +src_install() { + emake DESTDIR="${D}" PREFIX="/usr" install + dodoc README.rst +} diff --git a/app-text/XML-Schema-learner/XML-Schema-learner-1.0.1.ebuild b/app-text/XML-Schema-learner/XML-Schema-learner-1.0.1.ebuild new file mode 100644 index 000000000000..b0d391dd48b6 --- /dev/null +++ b/app-text/XML-Schema-learner/XML-Schema-learner-1.0.1.ebuild @@ -0,0 +1,38 @@ +# Copyright 1999-2015 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Id$ + +EAPI=5 + +DESCRIPTION="Algorithmic inferencing of XML schema definitions and DTDs" +HOMEPAGE="https://github.com/kore/${PN}" +SRC_URI="${HOMEPAGE}/archive/${PV}.tar.gz -> ${P}.tar.gz" + +LICENSE="GPL-3" +SLOT="0" +KEYWORDS="amd64 x86" +IUSE="test" + +# PHP dependency can be inferred from .travis.yml in the repository. +# The necessary USE flags on the other hand were found the hard way. +# +# The dependencies here aren't as expressive as they should be. What we +# really want is for php[...] to apply to everything in PHP_TARGETS, and +# for those interpreters (the ones in PHP_TARGETS) to be used to run the +# test suite. +# +# See bug #497606. +# +RDEPEND="dev-lang/php:*[cli,xml,xmlreader]" +DEPEND="test? ( ${RDEPEND} + dev-php/phpunit )" + +src_compile() { + # Don't run make, the default target is 'check'. + : +} + +src_install() { + emake DESTDIR="${D}" PREFIX="/usr" install + dodoc README.rst +} diff --git a/app-text/XML-Schema-learner/metadata.xml b/app-text/XML-Schema-learner/metadata.xml new file mode 100644 index 000000000000..1988ca282eeb --- /dev/null +++ b/app-text/XML-Schema-learner/metadata.xml @@ -0,0 +1,24 @@ +<?xml version="1.0" encoding="UTF-8"?> +<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd"> +<pkgmetadata> + <maintainer> + <email>mjo@gentoo.org</email> + </maintainer> + <longdescription> + This software implements various state-of-the-art algorithms for + algorithmic learning of XML Schema definitions and Document Type + Definitions. + + Given a set or a single XML instance it can algorithmically infer + a schema which describes the XML instances. The resulting schemas + are of high-quality and human readable. + + The theory behind the project is described in Kore Nordmann's + thesis, "Algorithmic learning of XML Schema definitions from XML + data," available at + http://kore-nordmann.de/talks/11_03_learning_xml_schema_definitions_from_xml_data.pdf. + </longdescription> + <upstream> + <remote-id type="github">kore/XML-Schema-learner</remote-id> + </upstream> +</pkgmetadata> diff --git a/app-text/a2ps/Manifest b/app-text/a2ps/Manifest new file mode 100644 index 000000000000..89dfac04b50a --- /dev/null +++ b/app-text/a2ps/Manifest @@ -0,0 +1,2 @@ +DIST a2ps-4.14-ja_nls.patch.gz 27576 SHA256 90b2a4caf680f04ac8c325a4bc7434edf038ef7059003179b7fa65a5bafdecdc SHA512 f02f553dd9d9dbd9dfe41ebfe103493000aa4e9de5634c94e7453f73b66d88fea6b0010095913a4a99c7285990a1df1ebcc39da451b2b34f96b0c191112b125f WHIRLPOOL 38a532bc7f696cf3a1addc502b6ad2d26ed4222b770b0e9fc4633fc81cad911df7e64781516a84cdc589965d12d51142c0a06980be7211b0a6d9bf279a11d55e +DIST a2ps-4.14.tar.gz 2552507 SHA256 f3ae8d3d4564a41b6e2a21f237d2f2b104f48108591e8b83497500182a3ab3a4 SHA512 fd6ac8ab47d789114c283e8ca508f7f56feabd1a189f4ac772cad9e6be7e3791e210892cfffd04ad1d39efe4b15386b2e61bf4cd56b70ed581c0554f36bfe06f WHIRLPOOL f0e445b760e0fdee031c9b8204430880f8e46d0eee2b580bec0dca35564818b7a8925b5941346c008a5ef32dedc28768b43f0e58f3a0e71f289bf593e5325e8d diff --git a/app-text/a2ps/a2ps-4.14-r3.ebuild b/app-text/a2ps/a2ps-4.14-r3.ebuild new file mode 100644 index 000000000000..ce3185bbdf62 --- /dev/null +++ b/app-text/a2ps/a2ps-4.14-r3.ebuild @@ -0,0 +1,134 @@ +# Copyright 1999-2013 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Id$ + +EAPI=4 +inherit autotools elisp-common eutils flag-o-matic + +DESCRIPTION="Any to PostScript filter" +HOMEPAGE="http://www.inf.enst.fr/~demaille/a2ps/" +SRC_URI="mirror://gnu/${PN}/${P}.tar.gz + linguas_ja? ( mirror://gentoo/${P}-ja_nls.patch.gz )" + +LICENSE="GPL-3" +SLOT="0" +KEYWORDS="alpha amd64 arm hppa ia64 ~mips ppc ppc64 s390 sh sparc x86 ~x86-fbsd ~x86-freebsd ~amd64-linux ~x86-linux ~ppc-macos ~x86-macos" +IUSE="emacs latex linguas_ja nls static-libs userland_BSD userland_GNU vanilla" + +RESTRICT=test + +RDEPEND="app-text/ghostscript-gpl + app-text/libpaper + >=app-text/psutils-1.17 + app-text/wdiff + emacs? ( virtual/emacs ) + latex? ( virtual/latex-base ) + nls? ( virtual/libintl ) + userland_GNU? ( >=sys-apps/coreutils-6.10-r1 ) + userland_BSD? ( sys-freebsd/freebsd-ubin )" +DEPEND="${RDEPEND} + >=dev-util/gperf-2.7.2 + virtual/yacc + nls? ( sys-devel/gettext )" + +SITEFILE=50${PN}-gentoo.el + +S=${WORKDIR}/${PN}-${PV:0:4} + +src_prepare() { + epatch "${FILESDIR}"/${PN}-4.13c-locale-gentoo.diff + # this will break + #epatch "${FILESDIR}/${PN}-4.13c-stdarg.patch" + use vanilla || epatch "${FILESDIR}"/${PN}-4.13-stdout.diff + if use linguas_ja; then + epatch "${DISTDIR}"/${P}-ja_nls.patch.gz + # bug #335803 + epatch "${FILESDIR}"/${P}-ja-cleanup.patch + else + epatch "${FILESDIR}"/${P}-cleanup.patch + fi + + # fix fnmatch replacement, bug #134546 + epatch "${FILESDIR}"/${PN}-4.13c-fnmatch-replacement.patch + + # bug #122026 + epatch "${FILESDIR}"/${P}-psset.patch + + # fix emacs printing, bug #114627 + epatch "${FILESDIR}"/a2ps-4.13c-emacs.patch + + # fix chmod error, #167670 + epatch "${FILESDIR}"/a2ps-4.13-manpage-chmod.patch + + # add configure check for mempcpy, bug 216588 + epatch "${FILESDIR}"/${P}-check-mempcpy.patch + + # fix compilation error due to invalid stpcpy() prototype, bug 216588 + epatch "${FILESDIR}"/${P}-fix-stpcpy-proto.patch + + # fix compilation error due to obstack.h issue, bug 269638 + epatch "${FILESDIR}"/${P}-ptrdiff_t.patch + + # fix building with sys-devel/automake >= 1.12, bug 420503 + rm -f {.,ogonkify}/aclocal.m4 + sed -i \ + -e '/^AM_C_PROTOTYPES/d' \ + -e '/^AUTOMAKE_OPTIONS.*ansi2knr/d' \ + -e 's:AM_CONFIG_HEADER:AC_CONFIG_HEADERS:' \ + -e 's:AM_PROG_CC_STDC:AC_PROG_CC:' \ + configure.in {contrib/sample,lib,src}/Makefile.am m4/protos.m4 || die + + eautoreconf +} + +src_configure() { + append-cppflags -DPROTOTYPES #420503 + + local myconf="COM_netscape=no COM_acroread=no" + + use emacs || myconf="${myconf} EMACS=no" + use latex || myconf="${myconf} COM_latex=no" + + export LANG=C LC_ALL=C + + econf \ + --enable-shared \ + $(use_enable static-libs static) \ + --sysconfdir="${EPREFIX}"/etc/a2ps \ + $(use_enable nls) \ + ${myconf} +} + +src_compile() { + # parallel make b0rked + emake -j1 +} + +src_install() { + emake \ + DESTDIR="${D}" \ + lispdir="${EPREFIX}${SITELISP}"/${PN} \ + install + + newdoc "${ED}"/usr/share/a2ps/README README.a2ps + newdoc "${ED}"/usr/share/a2ps/ppd/README README.a2ps.ppd + newdoc "${ED}"/usr/share/ogonkify/README README.ogonkify + + rm -f "${ED}"/usr/share/{a2ps,a2ps/ppd,ogonkify}/README + + prune_libtool_files + + if use emacs; then + elisp-site-file-install "${FILESDIR}"/${SITEFILE} || die + fi + + dodoc ANNOUNCE AUTHORS ChangeLog FAQ NEWS README* THANKS TODO +} + +pkg_postinst() { + use emacs && elisp-site-regen +} + +pkg_postrm() { + use emacs && elisp-site-regen +} diff --git a/app-text/a2ps/files/50a2ps-gentoo.el b/app-text/a2ps/files/50a2ps-gentoo.el new file mode 100644 index 000000000000..3e12daaf9a4b --- /dev/null +++ b/app-text/a2ps/files/50a2ps-gentoo.el @@ -0,0 +1,5 @@ +(add-to-list 'load-path "@SITELISP@") +(autoload 'a2ps-mode "a2ps" nil t) +(autoload 'a2ps-buffer "a2ps-print" nil t) +(autoload 'a2ps-region "a2ps-print" nil t) +(add-to-list 'auto-mode-alist '("\\.a2ps\\'" . a2ps-mode)) diff --git a/app-text/a2ps/files/a2ps-4.13-manpage-chmod.patch b/app-text/a2ps/files/a2ps-4.13-manpage-chmod.patch new file mode 100644 index 000000000000..e0c61124e9df --- /dev/null +++ b/app-text/a2ps/files/a2ps-4.13-manpage-chmod.patch @@ -0,0 +1,12 @@ +diff -ur a2ps-4.13.orig/man/Makefile.maint a2ps-4.13/man/Makefile.maint +--- a2ps-4.13.orig/man/Makefile.maint 2002-03-04 20:46:26.000000000 +0200 ++++ a2ps-4.13/man/Makefile.maint 2007-02-19 21:50:29.000000000 +0200 +@@ -20,7 +20,7 @@ + --include=$(basename $@).x \ + --include=common.x \ + $(executable) > $@-t || exit 1; \ +- chmod -w $@-t || exit 1; \ ++ chmod a-w $@-t || exit 1; \ + rm -f $@ || exit 1; \ + mv $@-t $@ || exit 1; \ + else \ diff --git a/app-text/a2ps/files/a2ps-4.13-stdout.diff b/app-text/a2ps/files/a2ps-4.13-stdout.diff new file mode 100644 index 000000000000..1e40e618fcbd --- /dev/null +++ b/app-text/a2ps/files/a2ps-4.13-stdout.diff @@ -0,0 +1,13 @@ +--- lib/printers.c.orig Tue Oct 12 00:01:59 1999 ++++ lib/printers.c Wed May 2 11:23:25 2001 +@@ -315,8 +315,8 @@ + res->ppd = NULL; /* Printer's ppd are not read yet */ + + /* Output */ +- /* Default is to send to default printer */ +- res->flag_output_is_printer = true; ++ /* Default is to send to stdout */ ++ res->flag_output_is_printer = false; + res->flag_output_name = NULL; + res->output_is_file = true; + res->output_name = NULL; diff --git a/app-text/a2ps/files/a2ps-4.13c-emacs.patch b/app-text/a2ps/files/a2ps-4.13c-emacs.patch new file mode 100644 index 000000000000..f1cd5d9ebdfc --- /dev/null +++ b/app-text/a2ps/files/a2ps-4.13c-emacs.patch @@ -0,0 +1,10 @@ +--- a2ps-4.13/contrib/emacs/a2ps-print.el.orig 2005-12-05 08:03:48.000000000 +0100 ++++ a2ps-4.13/contrib/emacs/a2ps-print.el 2005-12-06 16:38:14.000000000 +0100 +@@ -93,6 +93,7 @@ + (concat "--center-title=" name) + (concat "--footer=" (concat name " Emacs buffer")) + (concat "--pretty-print=" filetype) ++ (concat "-d") + ;Uncommenting the following gives a print preview (only): + ; (concat "--output=/tmp/foo.ps") + ) diff --git a/app-text/a2ps/files/a2ps-4.13c-fnmatch-replacement.patch b/app-text/a2ps/files/a2ps-4.13c-fnmatch-replacement.patch new file mode 100644 index 000000000000..c49ab78c93c0 --- /dev/null +++ b/app-text/a2ps/files/a2ps-4.13c-fnmatch-replacement.patch @@ -0,0 +1,43 @@ +diff -Naurp a2ps-4.13.orig/lib/fnmatch.c a2ps-4.13/lib/fnmatch.c +--- a2ps-4.13.orig/lib/fnmatch.c 2002-03-04 12:46:25 -0600 ++++ a2ps-4.13/lib/fnmatch.c 2006-05-27 11:41:15 -0500 +@@ -27,18 +27,6 @@ + #include <fnmatch.h> + #include <ctype.h> + +- +-/* Comment out all this code if we are using the GNU C Library, and are not +- actually compiling the library itself. This code is part of the GNU C +- Library, but also included in many other GNU distributions. Compiling +- and linking in this code is a waste when using the GNU C library +- (especially if it is a shared library). Rather than having every GNU +- program understand `configure --with-gnu-libc' and omit the object files, +- it is simpler to just do this in the source for each such file. */ +- +-#if defined _LIBC || !defined __GNU_LIBRARY__ +- +- + # if defined STDC_HEADERS || !defined isascii + # define ISASCII(c) 1 + # else +@@ -52,10 +40,13 @@ + extern int errno; + # endif + ++/* fnmatch replacement taken from the GNU C Library for systems that ++ provide a broken implementation. */ ++ + /* Match STRING against the filename pattern PATTERN, returning zero if + it matches, nonzero if not. */ + int +-fnmatch (const char *pattern, const char *string, int flags) ++rpl_fnmatch (const char *pattern, const char *string, int flags) + { + register const char *p = pattern, *n = string; + register char c; +@@ -233,5 +224,3 @@ fnmatch (const char *pattern, const char + + # undef FOLD + } +- +-#endif /* _LIBC or not __GNU_LIBRARY__. */ diff --git a/app-text/a2ps/files/a2ps-4.13c-locale-gentoo.diff b/app-text/a2ps/files/a2ps-4.13c-locale-gentoo.diff new file mode 100644 index 000000000000..0b59956ebc05 --- /dev/null +++ b/app-text/a2ps/files/a2ps-4.13c-locale-gentoo.diff @@ -0,0 +1,25 @@ +diff -urN a2ps-4.13.ORIG/config.h.in a2ps-4.13/config.h.in +--- a2ps-4.13.ORIG/config.h.in 2003-09-27 19:33:38.000000000 +0900 ++++ a2ps-4.13/config.h.in 2003-09-27 21:25:46.000000000 +0900 +@@ -181,6 +181,9 @@ + /* Define to 1 if you have the `rename' function. */ + #undef HAVE_RENAME + ++/* Define to 1 if you have the <locale.h> header file. */ ++#undef HAVE_LOCALE_H ++ + /* Define to 1 if you have the `setlocale' function. */ + #undef HAVE_SETLOCALE + +diff -urN a2ps-4.13.ORIG/configure.in a2ps-4.13/configure.in +--- a2ps-4.13.ORIG/configure.in 2003-09-27 19:33:38.000000000 +0900 ++++ a2ps-4.13/configure.in 2003-09-27 21:26:05.000000000 +0900 +@@ -71,7 +71,7 @@ + AC_HEADER_DIRENT + AC_CHECK_HEADERS(sys/time.h sys/stat.h sys/types.h sys/ioctl.h \ + math.h string.h strings.h stdlib.h unistd.h stdarg.h pwd.h malloc.h \ +- memory.h errno.h fcntl.h stdbool.h fnmatch.h) ++ memory.h errno.h fcntl.h stdbool.h fnmatch.h locale.h) + + ## --------------------- ## + ## Checks for typedefs. ## diff --git a/app-text/a2ps/files/a2ps-4.13c-psset.patch b/app-text/a2ps/files/a2ps-4.13c-psset.patch new file mode 100644 index 000000000000..f8fd4497f281 --- /dev/null +++ b/app-text/a2ps/files/a2ps-4.13c-psset.patch @@ -0,0 +1,11 @@ +--- a2ps-4.13/contrib/psset.in.orig 2006-03-16 12:30:48.000000000 +0100 ++++ a2ps-4.13/contrib/psset.in 2006-03-16 12:28:14.000000000 +0100 +@@ -241,7 +241,7 @@ + # spaces with a `\' too... + pspagedevicelen=`echo "$pspagedevice" | wc -l` + pspagedevice=`echo "$pspagedevice" | \ +- sed -e "$pspagedevicelen!s/\$/\\\\\\/;s/^/\\\\\\/"` ++ sed -e "$pspagedevicelen!s/\$/\\\\\\/;s/^ /\\\\\\/"` + + case $at in + 0) # Insert last in the Setup, so that we win over other requests. diff --git a/app-text/a2ps/files/a2ps-4.14-check-mempcpy.patch b/app-text/a2ps/files/a2ps-4.14-check-mempcpy.patch new file mode 100644 index 000000000000..7b820cead05f --- /dev/null +++ b/app-text/a2ps/files/a2ps-4.14-check-mempcpy.patch @@ -0,0 +1,12 @@ +--- a2ps-4.14-orig/configure.in 2008-04-16 08:36:03.000000000 +0200 ++++ a2ps-4.14/configure.in 2008-04-16 08:36:29.000000000 +0200 +@@ -137,7 +137,8 @@ + ad_REPLACE_FUNC_STRCASECMP + ad_REPLACE_FUNC_STRNCASECMP + ad_REPLACE_FUNC_RENAME +-AC_CHECK_FUNCS(uname strchr strerror strerror_r getcwd bcopy bzero tempnam strsignal psignal setlocale) ++AC_CHECK_FUNCS(uname strchr strerror strerror_r getcwd bcopy bzero \ ++ tempnam strsignal psignal setlocale mempcpy) + ad_FUNC_SYSTEMPAPERNAME + ad_FUNC_ATEXIT + ad_FUNC_STRFTIME diff --git a/app-text/a2ps/files/a2ps-4.14-cleanup.patch b/app-text/a2ps/files/a2ps-4.14-cleanup.patch new file mode 100644 index 000000000000..25187f315384 --- /dev/null +++ b/app-text/a2ps/files/a2ps-4.14-cleanup.patch @@ -0,0 +1,106 @@ +fix missing prototype and printf warnings + +--- a/lib/argmatch.c ++++ b/lib/argmatch.c +@@ -21,6 +21,7 @@ + #include "argmatch.h" + + #include <stdio.h> ++#include <stdlib.h> + #ifdef STDC_HEADERS + # include <string.h> + #endif +--- a/lib/encoding.c ++++ b/lib/encoding.c +@@ -790,7 +790,7 @@ dump_encoding_setup (FILE * stream, + /* Create the dictionary and fill it */ + fprintf (stream, "%% Dictionary for %s support\n", + encoding->name); +- fprintf (stream, "/%sdict %d dict begin\n", encoding->key, nb); ++ fprintf (stream, "/%sdict %zu dict begin\n", encoding->key, nb); + for (i = 0 ; i < nb ; i++) + fprintf (stream, " /f%s %sEncoding /%s reencode_font\n", + font_names [i], +--- a/lib/output.c ++++ b/lib/output.c +@@ -84,7 +84,7 @@ new_derivation (enum derivation_type type) + static void + derivation_self_print (struct derivation * derivation, FILE * stream) + { +- fprintf (stream, "At %x: ", (int) derivation); ++ fprintf (stream, "At %p: ", derivation); + switch (derivation->type) + { + case nothing: +@@ -525,7 +525,7 @@ output_file (struct output * out, a2ps_job * job, + expand_user_string (job, FIRST_FILE (job), + (const uchar *) "Expand: requirement", + (const uchar *) token)); +- output (dest, expansion); ++ output (dest, "%s", expansion); + continue; + } + +--- a/lib/parseppd.y ++++ b/lib/parseppd.y +@@ -154,7 +154,7 @@ font_clause : + void + yyerror (const char *msg) + { +- error_at_line (1, 0, ppdfilename, ppdlineno, msg); ++ error_at_line (1, 0, ppdfilename, ppdlineno, "%s", msg); + } + + /* +--- a/lib/psgen.c ++++ b/lib/psgen.c +@@ -232,7 +232,7 @@ output_marker (a2ps_job * job, const char * kind, uchar * marker) + default: + *buf = '\0'; + ps_escape_char (job, cp[i], buf); +- output (jdiv, (char *) buf); ++ output (jdiv, "%s", buf); + break; + } + } +--- a/lib/quotearg.c ++++ b/lib/quotearg.c +@@ -60,6 +60,7 @@ + + #if HAVE_MBRTOWC && HAVE_WCHAR_H + # include <wchar.h> ++# include <wctype.h> + #else + # define iswprint(wc) 1 + # define mbrtowc(pwc, s, n, ps) 1 +--- a/lib/title.c ++++ b/lib/title.c +@@ -28,6 +28,7 @@ + #endif + + #include <stdio.h> ++#include <string.h> + + #if HAVE_VPRINTF || HAVE_DOPRNT || _LIBC + # if __STDC__ +--- a/src/long-options.c ++++ b/src/long-options.c +@@ -22,6 +22,7 @@ + #endif + + #include <stdio.h> ++#include <stdlib.h> + #include <getopt.h> + #include "closeout.h" + #include "long-options.h" +--- a/src/parsessh.y ++++ b/src/parsessh.y +@@ -740,7 +740,7 @@ exception_def_opt: + void + yyerror (const char *msg) + { +- error_at_line (1, 0, sshfilename, sshlineno, msg); ++ error_at_line (1, 0, sshfilename, sshlineno, "%s", msg); + } + + /* diff --git a/app-text/a2ps/files/a2ps-4.14-fix-stpcpy-proto.patch b/app-text/a2ps/files/a2ps-4.14-fix-stpcpy-proto.patch new file mode 100644 index 000000000000..7c3c69076ae9 --- /dev/null +++ b/app-text/a2ps/files/a2ps-4.14-fix-stpcpy-proto.patch @@ -0,0 +1,17 @@ +=== modified file 'lib/xstrrpl.c' +--- lib/xstrrpl.c 2008-04-14 18:04:50 +0000 ++++ lib/xstrrpl.c 2008-04-14 18:20:20 +0000 +@@ -20,12 +20,10 @@ + + #include "system.h" + #include <assert.h> + #include "xstrrpl.h" + +-extern char * stpcpy(); +- + /* Perform subsitutions in string. Result is malloc'd + E.g., result = xstrrrpl ("1234", subst) gives result = "112333" + where subst = { {"1", "11"}, {"3", "333"}, { "4", ""}} + */ + char * + diff --git a/app-text/a2ps/files/a2ps-4.14-ja-cleanup.patch b/app-text/a2ps/files/a2ps-4.14-ja-cleanup.patch new file mode 100644 index 000000000000..16271b3ec674 --- /dev/null +++ b/app-text/a2ps/files/a2ps-4.14-ja-cleanup.patch @@ -0,0 +1,122 @@ +diff --git lib/argmatch.c lib/argmatch.c +index f983e9d..eadc7ea 100644 +--- lib/argmatch.c ++++ lib/argmatch.c +@@ -21,6 +21,7 @@ + #include "argmatch.h" + + #include <stdio.h> ++#include <stdlib.h> + #ifdef STDC_HEADERS + # include <string.h> + #endif +diff --git lib/encoding.c lib/encoding.c +index 9bd9f2a..f554a6d 100644 +--- lib/encoding.c ++++ lib/encoding.c +@@ -989,7 +989,7 @@ dump_encoding_setup (FILE * stream, + /* Create the dictionary and fill it */ + fprintf (stream, "%% Dictionary for %s support\n", + encoding->name); +- fprintf (stream, "/%sdict %d dict begin\n", encoding->key, ++ fprintf (stream, "/%sdict %zu dict begin\n", encoding->key, + (encoding->composite_flag == true)? nb+nb+ns:nb+ns); + for (i = 0 ; i < nb ; i++) + fprintf (stream, " /f%s %sEncoding /%s reencode_font\n", +diff --git lib/output.c lib/output.c +index b5fc37d..5f67676 100644 +--- lib/output.c ++++ lib/output.c +@@ -84,7 +84,7 @@ new_derivation (enum derivation_type type) + static void + derivation_self_print (struct derivation * derivation, FILE * stream) + { +- fprintf (stream, "At %x: ", (int) derivation); ++ fprintf (stream, "At %p: ", derivation); + switch (derivation->type) + { + case nothing: +@@ -525,7 +525,7 @@ output_file (struct output * out, a2ps_job * job, + expand_user_string (job, FIRST_FILE (job), + (const uchar *) "Expand: requirement", + (const uchar *) token)); +- output (dest, expansion); ++ output (dest, "%s", expansion); + continue; + } + +diff --git lib/parseppd.y lib/parseppd.y +index a7558ba..c89d188 100644 +--- lib/parseppd.y ++++ lib/parseppd.y +@@ -154,7 +154,7 @@ font_clause : + void + yyerror (const char *msg) + { +- error_at_line (1, 0, ppdfilename, ppdlineno, msg); ++ error_at_line (1, 0, ppdfilename, ppdlineno, "%s", msg); + } + + /* +diff --git lib/psgen.c lib/psgen.c +index 9eeef74..9d7a27d 100644 +--- lib/psgen.c ++++ lib/psgen.c +@@ -232,7 +232,7 @@ output_marker (a2ps_job * job, const char * kind, uchar * marker) + default: + *buf = '\0'; + ps_escape_char (job, cp[i], buf); +- output (jdiv, (char *) buf); ++ output (jdiv, "%s", buf); + break; + } + } +diff --git lib/quotearg.c lib/quotearg.c +index 16d0b91..89db991 100644 +--- lib/quotearg.c ++++ lib/quotearg.c +@@ -60,6 +60,7 @@ + + #if HAVE_MBRTOWC && HAVE_WCHAR_H + # include <wchar.h> ++# include <wctype.h> + #else + # define iswprint(wc) 1 + # define mbrtowc(pwc, s, n, ps) 1 +diff --git lib/title.c lib/title.c +index cf4a34b..7a3e87b 100644 +--- lib/title.c ++++ lib/title.c +@@ -28,6 +28,7 @@ + #endif + + #include <stdio.h> ++#include <string.h> + + #if HAVE_VPRINTF || HAVE_DOPRNT || _LIBC + # if __STDC__ +diff --git src/long-options.c src/long-options.c +index fb40cd9..7bd77b0 100644 +--- src/long-options.c ++++ src/long-options.c +@@ -22,6 +22,7 @@ + #endif + + #include <stdio.h> ++#include <stdlib.h> + #include <getopt.h> + #include "closeout.h" + #include "long-options.h" +diff --git src/parsessh.y src/parsessh.y +index 21e9559..569fdb6 100644 +--- src/parsessh.y ++++ src/parsessh.y +@@ -740,7 +740,7 @@ exception_def_opt: + void + yyerror (const char *msg) + { +- error_at_line (1, 0, sshfilename, sshlineno, msg); ++ error_at_line (1, 0, sshfilename, sshlineno, "%s", msg); + } + + /* diff --git a/app-text/a2ps/files/a2ps-4.14-psset.patch b/app-text/a2ps/files/a2ps-4.14-psset.patch new file mode 100644 index 000000000000..291c3aac4fa4 --- /dev/null +++ b/app-text/a2ps/files/a2ps-4.14-psset.patch @@ -0,0 +1,21 @@ +diff -Naur a2ps-4.14.orig/contrib/psset.in a2ps-4.14/contrib/psset.in +--- a2ps-4.14.orig/contrib/psset.in 2007-12-29 12:29:01.000000000 +0900 ++++ a2ps-4.14/contrib/psset.in 2009-04-12 12:17:43.000000000 +0900 +@@ -219,7 +219,7 @@ + done + + pspagedevice="% Pagedevice definitions: +-countdictstack ++ countdictstack + % Push our own mark, since there can be several PS marks pushed depending + % where the failure really occured. + /psset_mark +@@ -227,7 +227,7 @@ + } stopped + % My cleartomark + { /psset_mark eq { exit } if } loop +-countdictstack exch sub dup 0 gt ++ countdictstack exch sub dup 0 gt + { + { end } repeat + }{ diff --git a/app-text/a2ps/files/a2ps-4.14-ptrdiff_t.patch b/app-text/a2ps/files/a2ps-4.14-ptrdiff_t.patch new file mode 100644 index 000000000000..00d955a819a9 --- /dev/null +++ b/app-text/a2ps/files/a2ps-4.14-ptrdiff_t.patch @@ -0,0 +1,14 @@ +diff -uNr a2ps-4.14/lib/obstack.h a2ps-4.14.test/lib/obstack.h +--- a2ps-4.14/lib/obstack.h 2007-12-29 09:37:59.000000000 +0800 ++++ a2ps-4.14.test/lib/obstack.h 2009-06-10 18:49:45.000000000 +0900 +@@ -138,9 +138,9 @@ + #define __need_ptrdiff_t + #endif + #endif ++#endif + + #include <stddef.h> +-#endif + + #if defined (__STDC__) && __STDC__ + #define PTR_INT_TYPE ptrdiff_t diff --git a/app-text/a2ps/metadata.xml b/app-text/a2ps/metadata.xml new file mode 100644 index 000000000000..c050a28d58f9 --- /dev/null +++ b/app-text/a2ps/metadata.xml @@ -0,0 +1,6 @@ +<?xml version="1.0" encoding="UTF-8"?> +<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd"> +<pkgmetadata> +<herd>printing</herd> +<herd>cjk</herd> +</pkgmetadata> diff --git a/app-text/acroread/Manifest b/app-text/acroread/Manifest new file mode 100644 index 000000000000..9e3717138a47 --- /dev/null +++ b/app-text/acroread/Manifest @@ -0,0 +1 @@ +DIST AdbeRdr9.5.5-1_i486linux_enu.tar.bz2 57127348 SHA256 ee0ea9c65b38abd40ec7c92654e767dc138757f02aef5ae92f74e2dc75ac6540 SHA512 0d60f9c0248432445fb0e6ccbc6d7841ed3e63dad61765436c53098b15c2ede77f1dd6369b04004cec020c20df395f195c4aaf464a6e2761e57a9e9ea0cb5361 WHIRLPOOL 16ae019b3f1bc5b54a31af53e14788223ceed06483563dd4f5fdd7cd7356496188bbd95b04582dd768c4853998706c41cbb5c2b7a9dda99133e712e04b4dba59 diff --git a/app-text/acroread/acroread-9.5.5-r3.ebuild b/app-text/acroread/acroread-9.5.5-r3.ebuild new file mode 100644 index 000000000000..6cc8deeacfd2 --- /dev/null +++ b/app-text/acroread/acroread-9.5.5-r3.ebuild @@ -0,0 +1,208 @@ +# Copyright 1999-2015 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Id$ + +EAPI=5 + +inherit eutils gnome2-utils nsplugins + +DESCRIPTION="Adobe's PDF reader" +SRC_URI="http://ardownload.adobe.com/pub/adobe/reader/unix/9.x/${PV}/enu/AdbeRdr${PV}-1_i486linux_enu.tar.bz2" +HOMEPAGE="http://www.adobe.com/products/reader/" + +LICENSE="Adobe" +KEYWORDS="-* amd64 x86 ~amd64-linux ~x86-linux" +SLOT="0" +IUSE="html ldap nsplugin" +# asian fonts from separate package: +IUSE+=" linguas_zh_CN linguas_zh_TW linguas_ja linguas_ko" + +RESTRICT="strip mirror" + +DEPEND="" +RDEPEND=" + dev-libs/atk[abi_x86_32(-)] + dev-libs/glib:2[abi_x86_32(-)] + dev-libs/libxml2[abi_x86_32(-)] + dev-libs/openssl:0.9.8[abi_x86_32(-)] + media-libs/fontconfig[abi_x86_32(-)] + virtual/glu[abi_x86_32(-)] + >=net-dns/libidn-1.28[abi_x86_32(-)] + sys-libs/zlib[abi_x86_32(-)] + x11-libs/gdk-pixbuf:2[abi_x86_32(-)] + >=x11-libs/gtk+-2.24.23:2[abi_x86_32(-)] + x11-libs/libX11[abi_x86_32(-)] + x11-libs/libXext[abi_x86_32(-)] + x11-libs/pango[abi_x86_32(-)] + || ( + >=x11-libs/pangox-compat-0.0.2[abi_x86_32(-)] + <x11-libs/pango-1.31[X] + ) + nsplugin? ( x11-libs/libXt[abi_x86_32(-)] ) + ldap? ( >=net-nds/openldap-2.4.38-r1[abi_x86_32(-)] ) + x86? ( html? ( + || ( + www-client/firefox-bin + www-client/firefox + www-client/seamonkey-bin + www-client/seamonkey + ) + ) ) + linguas_zh_CN? ( media-fonts/acroread-asianfonts[linguas_zh_CN] ) + linguas_ja? ( media-fonts/acroread-asianfonts[linguas_ja] ) + linguas_zh_TW? ( media-fonts/acroread-asianfonts[linguas_zh_TW] ) + linguas_ko? ( media-fonts/acroread-asianfonts[linguas_ko] )" + +QA_EXECSTACK=" + opt/Adobe/Reader9/Reader/intellinux/bin/acroread + opt/Adobe/Reader9/Reader/intellinux/lib/libauthplay.so.0.0.0 + opt/Adobe/Reader9/Reader/intellinux/lib/libsccore.so + opt/Adobe/Reader9/Reader/intellinux/lib/libcrypto.so.0.9.8 + opt/Adobe/Reader9/Reader/intellinux/plug_ins/PPKLite.api +" +QA_FLAGS_IGNORED=" + opt/Adobe/Reader9/Reader/intellinux/plug_ins3d/.*.x3d + opt/Adobe/Reader9/Reader/intellinux/lib/lib.* + opt/Adobe/Reader9/Reader/intellinux/bin/SynchronizerApp-binary + opt/Adobe/Reader9/Reader/intellinux/bin/acroread + opt/Adobe/Reader9/Reader/intellinux/bin/xdg-user-dirs-update + opt/Adobe/Reader9/Reader/intellinux/SPPlugins/ADMPlugin.apl + opt/Adobe/Reader9/Reader/intellinux/plug_ins/AcroForm/PMP/.*.pmp + opt/Adobe/Reader9/Reader/intellinux/plug_ins/Multimedia/MPP/.*.mpp + opt/Adobe/Reader9/Reader/intellinux/plug_ins/.*.api + opt/Adobe/Reader9/Reader/intellinux/sidecars/.*.DEU + opt/Adobe/Reader9/Browser/intellinux/nppdf.so + opt/netscape/plugins/nppdf.so +" +QA_TEXTRELS=" + opt/Adobe/Reader9/Reader/intellinux/lib/libextendscript.so + opt/Adobe/Reader9/Reader/intellinux/lib/libsccore.so +" + +INSTALLDIR=/opt + +S="${WORKDIR}/AdobeReader" + +# remove bundled libs to force use of system version, bug 340527 +REMOVELIBS="libcrypto libssl" + +pkg_setup() { + # x86 binary package, ABI=x86 + has_multilib_profile && ABI="x86" +} + +src_unpack() { + unpack ${A} + cd "${S}" + # lowercase tar extension required for unpack, bug 476734 + mv ./ILINXR.TAR ./ILINXR.tar || die + mv ./COMMON.TAR ./COMMON.tar || die + unpack ./ILINXR.tar ./COMMON.tar +} + +src_prepare() { + # remove cruft + rm "${S}"/Adobe/Reader9/bin/UNINSTALL + rm "${S}"/Adobe/Reader9/Browser/install_browser_plugin + rm "${S}"/Adobe/Reader9/Resource/Support/vnd.*.desktop + + # replace some configuration sections + for binfile in "${S}"/Adobe/Reader9/bin/* ; do + sed -i -e '/Font-config/,+9d' \ + -e "/acrogre.conf/r ${FILESDIR}/gentoo_config" -e //N \ + "${binfile}" || die "sed configuration settings failed." + done + + # fix erroneous Exec entry in .desktop + sed -i \ + -e 's/^Exec=acroread[[:space:]]*$/Exec=acroread %F/' \ + -e 's/^Categories=Application;Office;Viewer;X-Red-Hat-Base;/Categories=Office;Viewer;/' \ + -e 's/^Caption=/X-Caption=/' \ + "${S}"/Adobe/Reader9/Resource/Support/AdobeReader.desktop \ + ||die "sed .desktop fix failed" + + # fix braindead error in nppdf.so (bug 412051) + sed -i 's#C:\\nppdf32Log\\debuglog\.txt#/dev/null\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00#g' \ + Adobe/Reader9/Browser/intellinux/nppdf.so || die +} + +src_install() { + local LAUNCHER="Adobe/Reader9/bin/acroread" + + # Install desktop files + domenu Adobe/Reader9/Resource/Support/AdobeReader.desktop + + # Install commonly used icon sizes + for res in 16x16 22x22 32x32 48x48 64x64 128x128 ; do + insinto /usr/share/icons/hicolor/${res}/apps + doins Adobe/Reader9/Resource/Icons/${res}/* + done + + dodir /opt + chown -R --dereference -L root:0 Adobe + cp -dpR Adobe "${ED}"opt/ || die + + # remove some bundled libs + for mylib in ${REMOVELIBS}; do + einfo Removing bundled ${mylib} + rm -v "${ED}"/opt/Adobe/Reader9/Reader/intellinux/lib/${mylib}* + done + + doman Adobe/Reader9/Resource/Shell/acroread.1.gz + + if use nsplugin; then + inst_plugin /opt/Adobe/Reader9/Browser/intellinux/nppdf.so + else + rm -v "${ED}"/opt/Adobe/Reader9/Browser/intellinux/nppdf.so + fi + + dodir /opt/bin + dosym /opt/${LAUNCHER} /opt/bin/${LAUNCHER/*bin\/} + + # NOTE -- this is likely old and broken and should be removed... + # We need to set a MOZILLA_COMP_PATH for seamonkey and firefox since + # they don't install a configuration file for libgtkembedmoz.so + # detection in /etc/gre.d/ like xulrunner did. + if use x86 && use html; then + for lib in /opt/{seamonkey,firefox} /usr/lib/{seamonkey,firefox,mozilla-firefox}; do + if [[ -f ${lib}/libgtkembedmoz.so ]] ; then + echo "MOZILLA_COMP_PATH=${lib}" >> "${ED}"${INSTALLDIR}/Adobe/Reader9/Reader/GlobalPrefs/mozilla_config + elog "Adobe Reader depends on libgtkembedmoz.so, which I've found on" + elog "your system in ${lib}, and configured in ${INSTALLDIR}/Adobe/Reader9/Reader/GlobalPrefs/mozilla_config." + break # don't search any more libraries + fi + done + fi +} + +pkg_preinst() { + gnome2_icon_savelist +} + +pkg_postinst () { + if use x86 && ! use html; then + echo + ewarn "If you want html support and/or view the Adobe Reader help you have" + ewarn "to re-emerge acroread with USE=\"html\"." + echo + fi + + if use amd64; then + if use nsplugin && ! has_version www-plugins/nspluginwrapper; then + echo + elog "If you're running a 64bit browser you may also want to install" + elog "\"www-plugins/nspluginwrapper\" to be able to use the Adobe Reader" + elog "browser plugin." + fi + elog "" + elog "If you find that Adobe Reader doesn't match your desktop's theme, you" + elog "may want to re-emerge the relevant gtk theme package with" + elog "USE=\"abi_x86_32\" enabled." + fi + + gnome2_icon_cache_update +} + +pkg_postrm() { + gnome2_icon_cache_update +} diff --git a/app-text/acroread/files/gentoo_config b/app-text/acroread/files/gentoo_config new file mode 100644 index 000000000000..1ca8729b8b3a --- /dev/null +++ b/app-text/acroread/files/gentoo_config @@ -0,0 +1,10 @@ +# Enable this if you want Adobe Reader to cache Font-config fonts +ACRO_ENABLE_FONT_CONFIG=1 +export ACRO_ENABLE_FONT_CONFIG + +# Enable this if you want to set the MOZILLA_COMP_PATH globally (for all the users) +if [ -f "$ACRO_INSTALL_DIR/GlobalPrefs/mozilla_config" ]; then + . "$ACRO_INSTALL_DIR/GlobalPrefs/mozilla_config" + export MOZILLA_COMP_PATH +fi + diff --git a/app-text/acroread/metadata.xml b/app-text/acroread/metadata.xml new file mode 100644 index 000000000000..a799f700d3b0 --- /dev/null +++ b/app-text/acroread/metadata.xml @@ -0,0 +1,8 @@ +<?xml version="1.0" encoding="UTF-8"?> +<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd"> +<pkgmetadata> +<herd>printing</herd> +<use> + <flag name="html">HTML support and help reading capability (only for x86).</flag> +</use> +</pkgmetadata> diff --git a/app-text/active-dvi/Manifest b/app-text/active-dvi/Manifest new file mode 100644 index 000000000000..3f849e1a4533 --- /dev/null +++ b/app-text/active-dvi/Manifest @@ -0,0 +1 @@ +DIST advi-1.10.2.tar.gz 9772060 SHA256 01556d20896db57c1d05961b2dd48a44d2fbca2adb10d4a9ded732bcf6cb0cc6 SHA512 93479e22261019b571bc331604a659e4e58200284bcdd63929b2c7ab07f8e9fabbd120f8876081a36e7e09e08286eeba9a45f3b077b545a9e404060622ec45c8 WHIRLPOOL 007d4e59c615deeeef0979dff8aca6aa1e088b1542de9076cd2a7f4c4e593a68110249f660c17e50ff25ef20eba5067d1640713fd7c9f44ead19e269c5a8bb47 diff --git a/app-text/active-dvi/active-dvi-1.10.2-r1.ebuild b/app-text/active-dvi/active-dvi-1.10.2-r1.ebuild new file mode 100644 index 000000000000..95988ec20122 --- /dev/null +++ b/app-text/active-dvi/active-dvi-1.10.2-r1.ebuild @@ -0,0 +1,73 @@ +# Copyright 1999-2014 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Id$ + +EAPI="5" + +inherit eutils autotools texlive-common + +MY_PN=${PN/ctive-/} +MY_P=${MY_PN}-${PV} +S=${WORKDIR}/${MY_P} + +DESCRIPTION="A DVI previewer and a presenter for slides written in LaTeX" +SRC_URI="http://gallium.inria.fr/advi/${MY_P}.tar.gz" +HOMEPAGE="http://gallium.inria.fr/advi/" +LICENSE="LGPL-2.1" + +IUSE="+ocamlopt" +SLOT="0" +KEYWORDS="~amd64 ~ppc x86" + +RDEPEND=">=dev-lang/ocaml-3.11.2:=[ocamlopt?] + >=dev-ml/camlimages-4.0.1:=[truetype,tiff,jpeg,postscript,X] + virtual/latex-base + app-text/ghostscript-gpl + x11-libs/libXinerama" +DEPEND="${RDEPEND} + dev-texlive/texlive-pstricks + dev-texlive/texlive-pictures + dev-texlive/texlive-latexextra + x11-proto/xineramaproto + dev-ml/findlib + app-text/htmlc + dev-tex/hevea" + +DOCS=( "README" "TODO" ) + +src_prepare() { + epatch "${FILESDIR}/${PN}-1.9-htmlcflags.patch" + AT_M4DIR="." eautoreconf +} + +src_configure() { + TEXMFMAIN="${EPREFIX}"/usr/share/texmf-site econf $(use_enable ocamlopt native-program) \ + --docdir="${EPREFIX}/usr/share/doc/${PF}" --enable-dependency-tracking #486066 +} + +src_compile() { + emake + cd doc || die + VARTEXFONTS="${T}/fonts" emake splash.dvi scratch_write_splash.dvi scratch_draw_splash.dvi +} + +src_install() { + emake DESTDIR="${D}" PACKAGE="${PF}" install + + # now install the documentation + dodoc ${DOCS} + + export STRIP_MASK="*/bin/advi.byt" + + for i in "${ED}/usr/share/doc/${PF}/"*.dvi ; do + docompress -x /usr/share/doc/${PF}/$(basename $i) + done +} + +pkg_postinst() { + etexmf-update +} + +pkg_postrm() { + etexmf-update +} diff --git a/app-text/active-dvi/files/active-dvi-1.9-htmlcflags.patch b/app-text/active-dvi/files/active-dvi-1.9-htmlcflags.patch new file mode 100644 index 000000000000..59697ec4dc83 --- /dev/null +++ b/app-text/active-dvi/files/active-dvi-1.9-htmlcflags.patch @@ -0,0 +1,13 @@ +Index: advi-1.9/doc/Makefile.am +=================================================================== +--- advi-1.9.orig/doc/Makefile.am ++++ advi-1.9/doc/Makefile.am +@@ -113,6 +113,8 @@ TEX_ENV = TEXINPUTS=$(srcdir):$(top_src + HEVEA_FLAGS = -entities -I $(srcdir) -I $(top_srcdir)/tex + HTMLC_FLAGS = -I $(srcdir)/includes \ + -D CamlVersion '$(OCAMLVERSION)' \ ++ -D HOSTNAME "$(HOSTNAME)" \ ++ -D USER "$(USER)" \ + -D version '$(VERSION)' + + MV = mv -f diff --git a/app-text/active-dvi/metadata.xml b/app-text/active-dvi/metadata.xml new file mode 100644 index 000000000000..ba6a8a8800d5 --- /dev/null +++ b/app-text/active-dvi/metadata.xml @@ -0,0 +1,5 @@ +<?xml version="1.0" encoding="UTF-8"?> +<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd"> +<pkgmetadata> +<herd>tex</herd> +</pkgmetadata> diff --git a/app-text/adiff/Manifest b/app-text/adiff/Manifest new file mode 100644 index 000000000000..6a54ac3926c4 --- /dev/null +++ b/app-text/adiff/Manifest @@ -0,0 +1 @@ +DIST adiff-1.4 10902 SHA256 c4e56a2a2288e4dc53a824e603d942c59caaebf9b72f01e332a9d98ebfa6df72 SHA512 edbb4d6a8ce8f636a874d22d1e44bc04b860ab31f1e825ce3e865ee3f6bf07fb6a7b9dd44e5429aad21a475d82b34f176d76f8466e58aeca74717740f7054219 WHIRLPOOL 1099775af9d2c5908d8a26cf4277b24ed3ab41b583f83c4bf263f09b190a8c8b68cf6c431219156346fad0848fd40670a93c8cf3c476333e0ec823f319b6b3bc diff --git a/app-text/adiff/adiff-1.4.ebuild b/app-text/adiff/adiff-1.4.ebuild new file mode 100644 index 000000000000..02ac8dae1bb1 --- /dev/null +++ b/app-text/adiff/adiff-1.4.ebuild @@ -0,0 +1,34 @@ +# Copyright 1999-2010 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Id$ + +DESCRIPTION="wordwise diff" +HOMEPAGE="http://agriffis.n01se.net/adiff/" +SRC_URI="${HOMEPAGE}/${P}" + +LICENSE="GPL-2" +SLOT="0" +KEYWORDS="alpha amd64 ia64 ppc64 x86 ~amd64-linux ~x86-linux ~ppc-macos" +IUSE="" + +DEPEND="dev-lang/perl + !app-arch/atool" +RDEPEND="${DEPEND} + sys-apps/diffutils" + +S=${WORKDIR} + +src_unpack() { + # Nothing to unpack + : +} + +src_compile() { + pod2man --release=${PV} --center="${HOMEPAGE}" \ + --date="2007-12-11" "${DISTDIR}"/${P} ${PN}.1 || die +} + +src_install() { + newbin "${DISTDIR}"/${P} ${PN} + doman ${PN}.1 +} diff --git a/app-text/adiff/metadata.xml b/app-text/adiff/metadata.xml new file mode 100644 index 000000000000..91f4e72fb544 --- /dev/null +++ b/app-text/adiff/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>maintainer-needed@gentoo.org</email> + </maintainer> +</pkgmetadata> diff --git a/app-text/agrep/Manifest b/app-text/agrep/Manifest new file mode 100644 index 000000000000..ccfab3e105e7 --- /dev/null +++ b/app-text/agrep/Manifest @@ -0,0 +1 @@ +DIST agrep-2.04.tar.Z 62351 SHA256 31275a2fee28fb8966e1978d26fe8113b61ce49b39e68ddf4cad3964db72d5f8 SHA512 4524250c2c0b309243fd245efb04fa8d867f45a92b0d977b29d2ff8ec99586c16c35b8a78cdd5aeb4c529fe0270c8b1220d6ddf52d947e6181a5f04bdbed5aee WHIRLPOOL a77870cb9b08512a847acf203d6b5ccad343a9b0bff107d8d768a9d5545c01ecccf860b0e35a9be82a46bbfc5718ba963145016dc8039ab3c157ba0a824316b0 diff --git a/app-text/agrep/agrep-2.04-r1.ebuild b/app-text/agrep/agrep-2.04-r1.ebuild new file mode 100644 index 000000000000..dee0d55744c2 --- /dev/null +++ b/app-text/agrep/agrep-2.04-r1.ebuild @@ -0,0 +1,34 @@ +# Copyright 1999-2014 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Id$ + +inherit toolchain-funcs + +DESCRIPTION="agrep is a tool for the fast searching of text allowing for errors in the search pattern" +HOMEPAGE="ftp://ftp.cs.arizona.edu/agrep/README" +SRC_URI="ftp://ftp.cs.arizona.edu/agrep/${P}.tar.Z" + +LICENSE="AGREP" +SLOT="0" +KEYWORDS="amd64 ~mips ppc ppc64 ~sparc x86 ~ppc-macos ~sparc-solaris" +IUSE="" + +DEPEND="" +RDEPEND=" + !dev-libs/tre + !app-misc/glimpse" + +src_compile() { + # Remove first occurace of CFLAGS so we grab the user CFLAGS + sed -i -e 's/^CFLAGS.*//' \ + -e "s:\$(CFLAGS):& \$(LDFLAGS) :" Makefile || die + tc-export CC + emake || die +} + +src_install() { + dobin agrep || die + doman agrep.1 || die + dodoc README agrep.algorithms agrep.chronicle COPYRIGHT \ + contribution.list || die +} diff --git a/app-text/agrep/agrep-2.04.ebuild b/app-text/agrep/agrep-2.04.ebuild new file mode 100644 index 000000000000..f7bc2f671725 --- /dev/null +++ b/app-text/agrep/agrep-2.04.ebuild @@ -0,0 +1,33 @@ +# Copyright 1999-2014 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Id$ + +inherit toolchain-funcs + +DESCRIPTION="agrep is a tool for the fast searching of text allowing for errors in the search pattern" +HOMEPAGE="ftp://ftp.cs.arizona.edu/agrep/README" +SRC_URI="ftp://ftp.cs.arizona.edu/agrep/${P}.tar.Z" + +LICENSE="AGREP" +SLOT="0" +KEYWORDS="amd64 ~mips ppc ppc64 sparc x86 ~ppc-macos ~sparc-solaris" +IUSE="" + +DEPEND="" +RDEPEND=" + !dev-libs/tre + !app-misc/glimpse" + +src_compile() { + # Remove first occurace of CFLAGS so we grab the user CFLAGS + sed -i -e 's/^CFLAGS.*//' Makefile || die + tc-export CC + emake || die +} + +src_install() { + dobin agrep || die + doman agrep.1 || die + dodoc README agrep.algorithms agrep.chronicle COPYRIGHT \ + contribution.list || die +} diff --git a/app-text/agrep/metadata.xml b/app-text/agrep/metadata.xml new file mode 100644 index 000000000000..40149c995561 --- /dev/null +++ b/app-text/agrep/metadata.xml @@ -0,0 +1,5 @@ +<?xml version="1.0" encoding="UTF-8"?> +<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd"> +<pkgmetadata> + <herd>shell-tools</herd> +</pkgmetadata> diff --git a/app-text/aiksaurus/Manifest b/app-text/aiksaurus/Manifest new file mode 100644 index 000000000000..8282f2531548 --- /dev/null +++ b/app-text/aiksaurus/Manifest @@ -0,0 +1 @@ +DIST aiksaurus-1.2.1.tar.gz 928893 SHA256 1b62cb6351835217f3c229faba3182ba2aa0ab395849bb894dab422976dc8cf4 SHA512 48591850f28f1a8f4b4986df14090ef7bd57cbfbad739cb0013db021f6f5bcb3c592b38e36774735499e27b9e99330504f8d9c6022158e25469cbc81d13f7463 WHIRLPOOL 8cce9571658bf2419e4f05b01bc8bf7cf45dbca4c2d6a0bcfb458c9ee156940d97eab26fc496002307a145eec99f8b3d9ce0286823b04f16c476cbc23ff1d24a diff --git a/app-text/aiksaurus/aiksaurus-1.2.1.ebuild b/app-text/aiksaurus/aiksaurus-1.2.1.ebuild new file mode 100644 index 000000000000..e1d941c8c83e --- /dev/null +++ b/app-text/aiksaurus/aiksaurus-1.2.1.ebuild @@ -0,0 +1,37 @@ +# Copyright 1999-2012 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Id$ + +EAPI=2 +inherit flag-o-matic eutils libtool + +DESCRIPTION="A thesaurus lib, tool and database" +HOMEPAGE="http://sourceforge.net/projects/aiksaurus" +SRC_URI="mirror://sourceforge/${PN}/${P}.tar.gz" + +LICENSE="GPL-2" +SLOT="0" +KEYWORDS="alpha amd64 ~arm hppa ia64 ~mips ppc ppc64 sparc x86 ~x86-fbsd ~x86-freebsd ~amd64-linux ~x86-linux" +IUSE="gtk" + +RDEPEND="gtk? ( x11-libs/gtk+:2 )" +DEPEND="${RDEPEND} + gtk? ( virtual/pkgconfig )" + +src_prepare() { + epatch "${FILESDIR}"/${P}-gcc43.patch #214248 + + # Needed to make relink work on FreeBSD, without it won't install. + # Also needed for a sane .so versionning there. + elibtoolize +} + +src_configure() { + filter-flags -fno-exceptions + econf $(use_with gtk) +} + +src_install() { + emake DESTDIR="${D}" install || die + dodoc AUTHORS README* ChangeLog +} diff --git a/app-text/aiksaurus/files/aiksaurus-1.2.1-gcc43.patch b/app-text/aiksaurus/files/aiksaurus-1.2.1-gcc43.patch new file mode 100644 index 000000000000..a6d570af569d --- /dev/null +++ b/app-text/aiksaurus/files/aiksaurus-1.2.1-gcc43.patch @@ -0,0 +1,30 @@ +--- aiksaurus-1.2.1/base/aiksaurus.t.cpp ++++ aiksaurus-1.2.1/base/aiksaurus.t.cpp +@@ -24,6 +24,7 @@ + #include "config.h" + #include <iostream> + #include <string> ++#include <cstdlib> + using namespace std; + using AiksaurusImpl::AsciiCompare; + +--- aiksaurus-1.2.1/gtk/src/Display.cpp ++++ aiksaurus-1.2.1/gtk/src/Display.cpp +@@ -22,6 +22,7 @@ + #include "Meaning.h" + #include "DialogMediator.h" + #include "Exception.h" ++#include <cstring> + using namespace std; + + namespace AiksaurusGTK_impl +--- aiksaurus-1.2.1/gtk/src/gtkAiksaur.t.cpp ++++ aiksaurus-1.2.1/gtk/src/gtkAiksaur.t.cpp +@@ -23,6 +23,7 @@ + #include <gtk/gtk.h> + #include <iostream> + #include <string> ++#include <cstdlib> + using namespace std; + + int main(int argc, char** argv) diff --git a/app-text/aiksaurus/metadata.xml b/app-text/aiksaurus/metadata.xml new file mode 100644 index 000000000000..70f95901f8de --- /dev/null +++ b/app-text/aiksaurus/metadata.xml @@ -0,0 +1,13 @@ +<?xml version="1.0" encoding="UTF-8"?> +<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd"> +<pkgmetadata> + <herd>proxy-maintainers</herd> + <maintainer> + <email>mg_gentoo@yahoo.com</email> + <name>Mark Gilbert</name> + <description>Third-party maintainer</description> + </maintainer> + <upstream> + <remote-id type="sourceforge">aiksaurus</remote-id> + </upstream> +</pkgmetadata> diff --git a/app-text/an/Manifest b/app-text/an/Manifest new file mode 100644 index 000000000000..4547983ba924 --- /dev/null +++ b/app-text/an/Manifest @@ -0,0 +1 @@ +DIST an_1.2.orig.tar.xz 13196 SHA256 b925d57d80bd0d83b755f5b8d78e6d5bf05eb059ec84a7d8fbb77b18c73b17a5 SHA512 919c525aa1215e3c1b2200c6820a357c6406c19b7447147cc4243d339c554b9892bea11797769df0bf96dd72c89f61bf3d977769faf9bc7f9edf609a7daeac3d WHIRLPOOL 45f4f39a2560b5db5457ac352d7617d04667f3d3ca17cc6a91172fe479f537ac69723b9e47b2fadc8446b6bf20b81920beb61669370378239361333eeb2de7a1 diff --git a/app-text/an/an-1.2.ebuild b/app-text/an/an-1.2.ebuild new file mode 100644 index 000000000000..5846a7778995 --- /dev/null +++ b/app-text/an/an-1.2.ebuild @@ -0,0 +1,41 @@ +# Copyright 1999-2014 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Id$ + +EAPI=5 +inherit eutils toolchain-funcs + +DESCRIPTION="Very fast anagram generator with dictionary lookup" +HOMEPAGE="http://packages.debian.org/unstable/games/an" + +SRC_URI="mirror://debian/pool/main/a/${PN}/${PN}_${PV}.orig.tar.xz" + +LICENSE="GPL-2" +SLOT="0" +KEYWORDS="amd64 hppa ppc ppc64 x86" +IUSE="" + +CDEPEND=" + dev-libs/icu:= +" +DEPEND=" + app-arch/xz-utils +" +RDEPEND=" + ${CDEPEND} + sys-apps/miscfiles[-minimal] +" + +src_prepare() { + sed -i \ + -e '/^CC/s|:=|?=|' \ + -e 's|$(CC) $(CFLAGS)|& $(LDFLAGS)|g' \ + Makefile || die + tc-export CC +} + +src_install() { + dobin ${PN} + newman ${PN}.6 ${PN}.1 + dodoc ALGORITHM +} diff --git a/app-text/an/metadata.xml b/app-text/an/metadata.xml new file mode 100644 index 000000000000..f24deadab0a0 --- /dev/null +++ b/app-text/an/metadata.xml @@ -0,0 +1,9 @@ +<?xml version="1.0" encoding="UTF-8"?> +<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd"> +<pkgmetadata> +<maintainer> + <email>jer@gentoo.org</email> + <name>Jeroen Roovers</name> +</maintainer> +</pkgmetadata> + diff --git a/app-text/ansifilter/Manifest b/app-text/ansifilter/Manifest new file mode 100644 index 000000000000..ee2484c6dee0 --- /dev/null +++ b/app-text/ansifilter/Manifest @@ -0,0 +1,3 @@ +DIST ansifilter-1.10.tar.bz2 54091 SHA256 a1f513b441ce9e5de1704671ec6bd3ab029ceec3e44368e32a40874c2f50577e SHA512 1fda6fcd7853d295cc3caae696367b3f11ba0aa7301f1e874725d8904012c8b4f433a86db19dc1ee7426469e8e7575a4bcabc7229f3fa9f6ba2adb3a53435e71 WHIRLPOOL 17e4c839c6838fdd91cf00f637f8eba9b7a78ced07a6ce4beba7d36ac91f45963f4209436525154a675050ad6ab3115136d8f94524c0a9d0ad782c9f7289949f +DIST ansifilter-1.11.tar.bz2 54132 SHA256 fcd550428203225483c4b049b56c5ac3ce786b4863c7eff5ab9b16b141692434 SHA512 db22a6eca7bd580683b9270abb11711c7fbee1b1a17fd710fd880518207a4c65f1df04d21565b22754109dea9a81e9d4fdba0f8e01eb9dac8555041bb83f4acc WHIRLPOOL d961c7e15381bebde1c11182bd38b119596fdadda8afbe019d7227c32546fd74fab2569b444806fb32ede1295f6237f749146410bf490347c519b037755a56d7 +DIST ansifilter-1.7.tar.bz2 133803 SHA256 a7e8ecec282bf2d823f89c1ae5cd7ca9da4e49f3dad98df052ea48ffd9a4975c SHA512 8040f7d9fd48784a64522218491e956678ee13bf75194c5a0e98e2f1acc8fde3cbdc1514125325692d95c4fd5193fa5ededb950cc778a9bacf3c4ac3aca50cb9 WHIRLPOOL 51736aab49de5bcfbe81db9187caba52811aaa3a06f4cf8e4991d00a597e23244c9dbc7ecbdfbb78c1a40c5cdc3770185ec5b2aa42a41885f11e70eda171cc58 diff --git a/app-text/ansifilter/ansifilter-1.10.ebuild b/app-text/ansifilter/ansifilter-1.10.ebuild new file mode 100644 index 000000000000..c933334d7554 --- /dev/null +++ b/app-text/ansifilter/ansifilter-1.10.ebuild @@ -0,0 +1,53 @@ +# Copyright 1999-2014 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Id$ + +EAPI=5 + +inherit toolchain-funcs qt4-r2 + +DESCRIPTION="Handles text files containing ANSI terminal escape codes" +HOMEPAGE="http://www.andre-simon.de/" +SRC_URI="http://www.andre-simon.de/zip/${P}.tar.bz2" + +LICENSE="GPL-3" +SLOT="0" +KEYWORDS="~amd64 ~x86" +IUSE="qt4" + +RDEPEND=" + qt4? ( + dev-qt/qtcore:4 + dev-qt/qtgui:4 + )" +DEPEND="${RDEPEND}" + +pkg_setup() { + myopts=( + "CC=$(tc-getCXX)" + "CFLAGS=${CFLAGS} -c" + "LDFLAGS=${LDFLAGS}" + "DESTDIR=${ED}" + "PREFIX=${EPREFIX}/usr" + "doc_dir=${EPREFIX}/usr/share/doc/${PF}/" + ) +} + +src_prepare() { + # bug 431452 + rm src/qt-gui/moc_mydialog.cpp || die +} + +src_compile() { + emake -f makefile "${myopts[@]}" + if use qt4 ; then + cd src/qt-gui + eqmake4 + emake + fi +} + +src_install() { + emake -f makefile "${myopts[@]}" install + use qt4 && emake -f makefile "${myopts[@]}" install-gui +} diff --git a/app-text/ansifilter/ansifilter-1.11.ebuild b/app-text/ansifilter/ansifilter-1.11.ebuild new file mode 100644 index 000000000000..c933334d7554 --- /dev/null +++ b/app-text/ansifilter/ansifilter-1.11.ebuild @@ -0,0 +1,53 @@ +# Copyright 1999-2014 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Id$ + +EAPI=5 + +inherit toolchain-funcs qt4-r2 + +DESCRIPTION="Handles text files containing ANSI terminal escape codes" +HOMEPAGE="http://www.andre-simon.de/" +SRC_URI="http://www.andre-simon.de/zip/${P}.tar.bz2" + +LICENSE="GPL-3" +SLOT="0" +KEYWORDS="~amd64 ~x86" +IUSE="qt4" + +RDEPEND=" + qt4? ( + dev-qt/qtcore:4 + dev-qt/qtgui:4 + )" +DEPEND="${RDEPEND}" + +pkg_setup() { + myopts=( + "CC=$(tc-getCXX)" + "CFLAGS=${CFLAGS} -c" + "LDFLAGS=${LDFLAGS}" + "DESTDIR=${ED}" + "PREFIX=${EPREFIX}/usr" + "doc_dir=${EPREFIX}/usr/share/doc/${PF}/" + ) +} + +src_prepare() { + # bug 431452 + rm src/qt-gui/moc_mydialog.cpp || die +} + +src_compile() { + emake -f makefile "${myopts[@]}" + if use qt4 ; then + cd src/qt-gui + eqmake4 + emake + fi +} + +src_install() { + emake -f makefile "${myopts[@]}" install + use qt4 && emake -f makefile "${myopts[@]}" install-gui +} diff --git a/app-text/ansifilter/ansifilter-1.7.ebuild b/app-text/ansifilter/ansifilter-1.7.ebuild new file mode 100644 index 000000000000..36ccf1b66ee2 --- /dev/null +++ b/app-text/ansifilter/ansifilter-1.7.ebuild @@ -0,0 +1,55 @@ +# Copyright 1999-2013 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Id$ + +EAPI=4 + +inherit toolchain-funcs qt4-r2 + +DESCRIPTION="Handles text files containing ANSI terminal escape codes" +HOMEPAGE="http://www.andre-simon.de/" +SRC_URI="http://www.andre-simon.de/zip/${P}.tar.bz2" + +LICENSE="GPL-3" +SLOT="0" +KEYWORDS="~amd64 ~x86" +IUSE="qt4" + +RDEPEND=" + qt4? ( + dev-qt/qtcore:4 + dev-qt/qtgui:4 + )" +DEPEND="${RDEPEND}" + +S=${WORKDIR}/${PN} + +pkg_setup() { + myopts=( + "CC=$(tc-getCXX)" + "CFLAGS=${CFLAGS} -c" + "LDFLAGS=${LDFLAGS}" + "DESTDIR=${ED}" + "PREFIX=${EPREFIX}/usr" + "doc_dir=${EPREFIX}/usr/share/doc/${PF}/" + ) +} + +src_prepare() { + # bug 431452 + rm src/qt-gui/moc_mydialog.cpp || die +} + +src_compile() { + emake -f makefile "${myopts[@]}" + if use qt4 ; then + cd src/qt-gui + eqmake4 + emake + fi +} + +src_install() { + emake -f makefile "${myopts[@]}" install + use qt4 && emake -f makefile "${myopts[@]}" install-gui +} diff --git a/app-text/ansifilter/metadata.xml b/app-text/ansifilter/metadata.xml new file mode 100644 index 000000000000..157326a7e891 --- /dev/null +++ b/app-text/ansifilter/metadata.xml @@ -0,0 +1,8 @@ +<?xml version="1.0" encoding="UTF-8"?> +<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd"> +<pkgmetadata> + <maintainer> + <email>radhermit@gentoo.org</email> + <name>Tim Harder</name> + </maintainer> +</pkgmetadata> diff --git a/app-text/antiword/Manifest b/app-text/antiword/Manifest new file mode 100644 index 000000000000..7ce28e26fd26 --- /dev/null +++ b/app-text/antiword/Manifest @@ -0,0 +1,2 @@ +DIST antiword-0.37.tar.gz 317884 SHA256 8e2c000fcbc6d641b0e6ff95e13c846da3ff31097801e86702124a206888f5ac SHA512 6cd8fb9137238417544cf8754829a2d5296055d730ea62a8a025236baa79516190317d146401ff40cde73e1ee2c3c374a2ea01b2e5d24e149310bcabb8bfdce8 WHIRLPOOL 653299ddeba3c153651a664abe12d9c9960227289cfada037574d97dbb3a1a2bf958571815ce6995e38ce7a197714b1852a39aebae108986cb74e861e948c7e3 +DIST antiword-gentoo-patches-r2.tar.bz2 1747 SHA256 62de6106d47e80a5e890bfbe4d2c85c5c78022e196857a4fca035c7c035d583d SHA512 45ed3ee1c514a9ee78bc8963e56be18426b47ea628f02934dbcec83c2d632162e458f75f998da438daae4794fcce36fd8922a172804c0fc83c6f32c9a8092ffe WHIRLPOOL e3a578c1bb082378f0db480aaab640f56f53e23fb35416a04e06803a8fdbd0193f0fbe33cce074dad00d13feada2bc97ce62dae460123047bbe80cd49994b445 diff --git a/app-text/antiword/antiword-0.37-r1.ebuild b/app-text/antiword/antiword-0.37-r1.ebuild new file mode 100644 index 000000000000..08dbb9b81427 --- /dev/null +++ b/app-text/antiword/antiword-0.37-r1.ebuild @@ -0,0 +1,51 @@ +# Copyright 1999-2015 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Id$ + +EAPI="5" + +inherit eutils toolchain-funcs + +IUSE="kde" +PATCHVER="r2" +DESCRIPTION="free MS Word reader" +HOMEPAGE="http://www.winfield.demon.nl" +SRC_URI="http://www.winfield.demon.nl/linux/${P}.tar.gz + http://dev.gentoo.org/~grobian/distfiles/${PN}-gentoo-patches-${PATCHVER}.tar.bz2" + +SLOT="0" +LICENSE="GPL-2" +KEYWORDS="alpha amd64 ~hppa ppc ppc64 sparc x86 ~ppc-aix ~ia64-hpux ~amd64-linux ~x86-linux ~ppc-macos ~x64-macos ~x86-macos ~sparc-solaris ~x64-solaris ~x86-solaris" + +src_prepare() { + # Makefile is a symlink to Makefile.Linux, avoid that we patch it by + # accident using patch <2.7, see bug #435492 + rm Makefile || die + + EPATCH_SUFFIX="patch" epatch "${WORKDIR}/${PN}-gentoo-patches-${PATCHVER}" + + # Re-add convenience symlink, see above + ln -s Makefile.Linux Makefile + + epatch "${FILESDIR}"/${P}-CVE-2014-8123.patch +} + +src_configure() { :; } + +src_compile() { + emake PREFIX="${EPREFIX}" OPT="${CFLAGS}" CC="$(tc-getCC)" LD="$(tc-getCC)" \ + LDFLAGS="${LDFLAGS}" || die "emake failed" +} + +src_install() { + emake -j1 PREFIX="${EPREFIX}" DESTDIR="${D}" global_install || die + + use kde || rm -f "${ED}"/usr/bin/kantiword + + insinto /usr/share/${PN}/examples + doins Docs/testdoc.doc Docs/antiword.php || die + + cd Docs + doman antiword.1 || die + dodoc ChangeLog Exmh Emacs FAQ History Netscape QandA ReadMe Mozilla Mutt || die +} diff --git a/app-text/antiword/files/antiword-0.37-CVE-2014-8123.patch b/app-text/antiword/files/antiword-0.37-CVE-2014-8123.patch new file mode 100644 index 000000000000..8b6baf9b2ca2 --- /dev/null +++ b/app-text/antiword/files/antiword-0.37-CVE-2014-8123.patch @@ -0,0 +1,17 @@ +index 8a95fb9..7797d1f 100644 +--- a/wordole.c ++++ b/wordole.c +@@ -259,6 +259,11 @@ bGetPPS(FILE *pFile, + } + tNameSize = (size_t)usGetWord(0x40, aucBytes); + tNameSize = (tNameSize + 1) / 2; ++ if (tNameSize >= sizeof(atPPSlist[0].szName)) { ++ werr(0, "PPS %d appears to be invalid.", iIndex); ++ atPPSlist = xfree(atPPSlist); ++ return FALSE; ++ } + vName2String(atPPSlist[iIndex].szName, aucBytes, tNameSize); + atPPSlist[iIndex].ucType = ucGetByte(0x42, aucBytes); + if (atPPSlist[iIndex].ucType == 5) { +-- +2.1.2 diff --git a/app-text/antiword/files/antiword-0.37-prefix.patch b/app-text/antiword/files/antiword-0.37-prefix.patch new file mode 100644 index 000000000000..40053696f52e --- /dev/null +++ b/app-text/antiword/files/antiword-0.37-prefix.patch @@ -0,0 +1,71 @@ +--- antiword.h ++++ antiword.h +@@ -191,43 +191,11 @@ + #define FONT_SANS_SERIF_ITALIC "Helvetica-Oblique" + #define FONT_SANS_SERIF_BOLDITALIC "Helvetica-BoldOblique" + /* The name of the antiword directories and the font information file */ +-#if defined(__dos) +-#define GLOBAL_ANTIWORD_DIR "C:\\antiword" +-#define ANTIWORD_DIR "antiword" +-#define FONTNAMES_FILE "fontname.txt" +-#elif defined(__amigaos) +-#define GLOBAL_ANTIWORD_DIR "SYS:.antiword" +-#define ANTIWORD_DIR ".antiword" +-#define FONTNAMES_FILE "fontnames" +-#elif defined(N_PLAT_NLM) +-#define GLOBAL_ANTIWORD_DIR "SYS:/antiword" +-#define ANTIWORD_DIR "antiword" +-#define FONTNAMES_FILE "fontname.txt" +-#elif defined(__vms) +-#define GLOBAL_ANTIWORD_DIR "/usr/share/antiword" +-#define ANTIWORD_DIR "antiword" +-#define FONTNAMES_FILE "fontnames" +-#elif defined(__BEOS__) +-#define GLOBAL_ANTIWORD_DIR "/boot/home/config/apps/antiword" +-#define ANTIWORD_DIR "antiword" +-#define FONTNAMES_FILE "fontnames" +-#elif defined(__CYGMING__) +-#define GLOBAL_ANTIWORD_DIR "C:\\antiword" +-#define ANTIWORD_DIR "antiword" +-#define FONTNAMES_FILE "fontnames" +-#elif defined(__Plan9__) +-#define GLOBAL_ANTIWORD_DIR "/sys/lib/antiword" +-#define ANTIWORD_DIR "lib/antiword" +-#define FONTNAMES_FILE "fontnames" +-#elif defined(__sun__) +-#define GLOBAL_ANTIWORD_DIR "/usr/local/share/antiword" ++#ifndef GLOBAL_ANTIWORD_DIR ++#error "GLOBAL_ANTIWORD_DIR is unset!" ++#endif + #define ANTIWORD_DIR ".antiword" + #define FONTNAMES_FILE "fontnames" +-#else /* All others */ +-#define GLOBAL_ANTIWORD_DIR "/usr/share/antiword" +-#define ANTIWORD_DIR ".antiword" +-#define FONTNAMES_FILE "fontnames" +-#endif /* __dos */ + /* The names of grouped mapping files */ + /* ASCII */ + #define MAPPING_FILE_CP437 "cp437.txt" +--- Makefile ++++ Makefile +@@ -36,8 +36,8 @@ + LOCAL_INSTALL_DIR = $(HOME)/bin + LOCAL_RESOURCES_DIR = $(HOME)/.antiword + +-GLOBAL_INSTALL_DIR = /usr/bin +-GLOBAL_RESOURCES_DIR = /usr/share/antiword ++GLOBAL_INSTALL_DIR = $(PREFIX)/usr/bin ++GLOBAL_RESOURCES_DIR = $(PREFIX)/usr/share/antiword + + all: $(PROGS) + +@@ -83,7 +83,7 @@ + @chmod 750 $@ + + .c.o: +- $(CC) $(CFLAGS) -c $< ++ $(CC) $(CFLAGS) '-DGLOBAL_ANTIWORD_DIR="$(GLOBAL_RESOURCES_DIR)"' -c $< + + main_u.o: version.h + postscript.o: version.h diff --git a/app-text/antiword/metadata.xml b/app-text/antiword/metadata.xml new file mode 100644 index 000000000000..aaaf98dcc446 --- /dev/null +++ b/app-text/antiword/metadata.xml @@ -0,0 +1,17 @@ +<?xml version="1.0" encoding="UTF-8"?> +<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd"> +<pkgmetadata> + <herd>proxy-maintainers</herd> + <maintainer> + <email>grobian@gentoo.org</email> + <name>Fabian Groffen</name> + </maintainer> + <maintainer> + <email>clabbe.montjoie@gmail.com</email> + <name>LABBE Corentin (Montjoie)</name> + <description>Maintainer. Assign bugs to him</description> + </maintainer> + <upstream> + <remote-id type="cpe">cpe:/a:antiword_project:antiword</remote-id> + </upstream> +</pkgmetadata> diff --git a/app-text/antixls/Manifest b/app-text/antixls/Manifest new file mode 100644 index 000000000000..c8581bc1369a --- /dev/null +++ b/app-text/antixls/Manifest @@ -0,0 +1 @@ +DIST antixls-0.3b.perl 4627 SHA256 e08aa669251e215e00769acdfb188071b384cb6be4deb10c7bdc9223b95b6399 SHA512 7e6a6ce26ea8134ee35bab55da73fefc1b211bb58b52468e012abb3ddd0688afea5f3b87b9de49bdb0daff1b6d79b02d4cd6bc2b045a88ff7dc557610ac6fd7f WHIRLPOOL 79da24a5c569b332922eecbf558f4339b426ab38b8d414b3e3bcfd94d2dc42c4e2f8826be592e1ad6a2fbb4acaf286aa5a02d695d4dee93efc69b62e42f891a7 diff --git a/app-text/antixls/antixls-0.3b.ebuild b/app-text/antixls/antixls-0.3b.ebuild new file mode 100644 index 000000000000..97d9a972bc57 --- /dev/null +++ b/app-text/antixls/antixls-0.3b.ebuild @@ -0,0 +1,17 @@ +# Copyright 1999-2014 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Id$ + +DESCRIPTION="It is used to print out an XLS file with minimal formatting, or extracts the data into CSV format" +HOMEPAGE="http://www.af0.net/~dan/?antixls" +SRC_URI="http://www.af0.net/~dan/repos/${P}.perl" +LICENSE="public-domain" +SLOT="0" +KEYWORDS="~amd64 ~x86 ~ppc-macos ~x64-macos ~x86-macos ~x64-solaris ~x86-solaris" +IUSE="" +DEPEND="dev-perl/Spreadsheet-ParseExcel" + +src_install() { + mv "${DISTDIR}/${P}.perl" ${PN} + dobin ${PN} +} diff --git a/app-text/antixls/metadata.xml b/app-text/antixls/metadata.xml new file mode 100644 index 000000000000..1470e032181b --- /dev/null +++ b/app-text/antixls/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>maintainer-needed@gentoo.org</email> + </maintainer> +</pkgmetadata> diff --git a/app-text/apvlv/Manifest b/app-text/apvlv/Manifest new file mode 100644 index 000000000000..e5401c3085e6 --- /dev/null +++ b/app-text/apvlv/Manifest @@ -0,0 +1,2 @@ +DIST apvlv-0.1.4-Source.tar.gz 337182 SHA256 f803de89aed82fea08f9386a6d6ddec999d0c96bb68c85e4cd527803838d17cd SHA512 798db075e702b02323e4df9f2ed07478aca975feca9ec7cae386792cdb4dbdcf016e7569e8f16bce6ffea0fe5482b5ea8551de10cbd0652f5607e5f0c0ea024b WHIRLPOOL fc9b66d829de17442efe7f782e44dd8024fbaf680a12a260504592bd8a44f48e7d5ace30f18f3ddec4df178fc772f4046ba0fe3e0c100195d86f05bea9703a0a +DIST apvlv-0.1.5.tar.gz 4254177 SHA256 dca98157e63c9fec12d6514751ea26549813dc7b87d838b0003f31a444100a8a SHA512 680b2d6e272cda34b0b9065f5fdf7b917a4e3ed4d54a6e78cb41a60cf43374c687b506d4148d6cecf87912957fbe6bc4c77e9278616fd236e49ade15774e1ccd WHIRLPOOL c254d3ca939b308dc58aadee20e33c5a6bda7495c4521d3433d2eb4a03ab4c9fd25f0589554506b08496f9024ef6d8c8648abc31b5175ad5b181272b9e6cae00 diff --git a/app-text/apvlv/apvlv-0.1.4.ebuild b/app-text/apvlv/apvlv-0.1.4.ebuild new file mode 100644 index 000000000000..2460cfb5bb99 --- /dev/null +++ b/app-text/apvlv/apvlv-0.1.4.ebuild @@ -0,0 +1,59 @@ +# Copyright 1999-2013 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Id$ + +EAPI=5 + +inherit eutils cmake-utils + +MY_P="${P}-Source" +DESCRIPTION="Alf's PDF Viewer Like Vim" +HOMEPAGE="http://naihe2010.github.com/apvlv/" +SRC_URI="mirror://github/naihe2010/${PN}/${MY_P}.tar.gz" + +LICENSE="GPL-2" +SLOT="0" +KEYWORDS="amd64 x86" +IUSE="debug djvu" + +RDEPEND=" + >=app-text/poppler-0.18:=[cairo,xpdf-headers(+)] + >=x11-libs/gtk+-2.10.4:2 + djvu? ( app-text/djvu:= ) +" +DEPEND="${RDEPEND} + virtual/pkgconfig +" + +S=${WORKDIR}/${MY_P} + +src_prepare() { + # Webkit automagic, preserve cflags + epatch "${FILESDIR}/${PN}-0.1.4-cmake.patch" + + # Remove prefixes so it works with the cmake-utils eclass + sed -i -e "s:APVLV_::" CMakeLists.txt src/CMakeLists.txt || die + + # Don't install tex file + sed -i -e "s:Startup.tex::" CMakeLists.txt || die +} + +src_configure() { + local mycmakeargs=( + -DSYSCONFDIR=/etc/${PN} + -DDOCDIR=/usr/share/${PN} + -DMANDIR=/usr/share/man + -DWITH_HTML=OFF + -DWITH_UMD=OFF + -DWITH_TXT=ON + $(cmake-utils_use_with djvu) + ) + cmake-utils_src_configure +} + +src_install() { + cmake-utils_src_install + dodoc AUTHORS NEWS README THANKS TODO + newicon icons/pdf.png ${PN}.png + make_desktop_entry ${PN} "Alf's PDF Viewer Like Vim" ${PN} "Office;Viewer" +} diff --git a/app-text/apvlv/apvlv-0.1.5.ebuild b/app-text/apvlv/apvlv-0.1.5.ebuild new file mode 100644 index 000000000000..a06dc571b459 --- /dev/null +++ b/app-text/apvlv/apvlv-0.1.5.ebuild @@ -0,0 +1,64 @@ +# Copyright 1999-2015 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Id$ + +EAPI=5 + +inherit eutils cmake-utils gnome2-utils + +DESCRIPTION="Alf's PDF Viewer Like Vim" +HOMEPAGE="http://naihe2010.github.com/apvlv/" +SRC_URI="https://github.com/naihe2010/apvlv/archive/v${PV}.tar.gz -> ${P}.tar.gz" + +LICENSE="GPL-2" +SLOT="0" +KEYWORDS="~amd64 ~x86" +IUSE="debug djvu html" + +RDEPEND=" + >=app-text/poppler-0.18:=[cairo,xpdf-headers(+)] + dev-libs/glib:2 + x11-libs/gtk+:3 + djvu? ( app-text/djvu:= ) + html? ( net-libs/webkit-gtk:3= ) +" +DEPEND="${RDEPEND} + virtual/pkgconfig +" + +src_prepare() { + # preserve cflags + epatch "${FILESDIR}/${PN}-0.1.5-cflags.patch" +} + +src_configure() { + local mycmakeargs=( + -DSYSCONFDIR=/etc/${PN} + -DDOCDIR=/usr/share/${PN} + -DMANDIR=/usr/share/man + $(cmake-utils_use html APVLV_WITH_HTML) + -DAPVLV_WITH_UMD=OFF + -DAPVLV_WITH_TXT=ON + $(cmake-utils_use djvu APVLV_WITH_DJVU) + $(cmake-utils_use debug APVLV_ENABLE_DEBUG) + ) + cmake-utils_src_configure +} + +src_install() { + cmake-utils_src_install + dodoc AUTHORS NEWS README THANKS TODO + newicon -s 32 icons/pdf.png ${PN}.png +} + +pkg_preinst() { + gnome2_icon_savelist +} + +pkg_postinst() { + gnome2_icon_cache_update +} + +pkg_postrm() { + gnome2_icon_cache_update +} diff --git a/app-text/apvlv/files/apvlv-0.1.4-cmake.patch b/app-text/apvlv/files/apvlv-0.1.4-cmake.patch new file mode 100644 index 000000000000..43c11596b8b0 --- /dev/null +++ b/app-text/apvlv/files/apvlv-0.1.4-cmake.patch @@ -0,0 +1,32 @@ +diff -ruN apvlv-0.1.4-Source/src/CMakeLists.txt my/src/CMakeLists.txt +--- apvlv-0.1.4-Source/src/CMakeLists.txt 2012-06-13 05:44:28.000000000 +0200 ++++ my/src/CMakeLists.txt 2012-07-17 00:32:53.782141814 +0200 +@@ -1,23 +1,18 @@ + IF (WIN32) + ADD_DEFINITIONS (-D_CRT_SECURE_NO_WARNINGS) + ELSE (WIN32) +- SET (CMAKE_CXX_FLAGS "-Wall -fno-strict-aliasing") +- +- OPTION (APVLV_ENABLE_DEBUG "If build binary with debug infomations." OFF) +- IF (APVLV_ENABLE_DEBUG) +- SET (CMAKE_CXX_FLAGS "-D_DEBUG -g ${CMAKE_CXX_FLAGS}") +- ELSE (APVLV_ENABLE_DEBUG) +- SET (CMAKE_CXX_FLAGS "-O2 ${CMAKE_CXX_FLAGS}") +- ENDIF (APVLV_ENABLE_DEBUG) ++ SET (CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -Wall -fno-strict-aliasing") + ENDIF (WIN32) + + FIND_PACKAGE (PkgConfig) + +-PKG_CHECK_MODULES (FREETYPE2 freetype2 REQUIRED) + PKG_CHECK_MODULES (GTK2 gtk+-2.0 REQUIRED) + PKG_CHECK_MODULES (GLIB2 glib-2.0 REQUIRED) + PKG_CHECK_MODULES (GTHREAD2 gthread-2.0 REQUIRED) +-PKG_CHECK_MODULES (WEBKIT1 webkit-1.0 QUIET) ++ ++IF (APVLV_WITH_HTML) ++ PKG_CHECK_MODULES (WEBKIT1 webkit-1.0 REQUIRED) ++ENDIF (APVLV_WITH_HTML) + INCLUDE_DIRECTORIES (${FREETYPE2_INCLUDE_DIRS} + ${GTK2_INCLUDE_DIRS} + ${GLIB2_INCLUDE_DIRS} diff --git a/app-text/apvlv/files/apvlv-0.1.5-cflags.patch b/app-text/apvlv/files/apvlv-0.1.5-cflags.patch new file mode 100644 index 000000000000..d1859fa25701 --- /dev/null +++ b/app-text/apvlv/files/apvlv-0.1.5-cflags.patch @@ -0,0 +1,20 @@ +diff --git a/src/CMakeLists.txt b/src/CMakeLists.txt +index ae9ae09..5831e7a 100644 +--- a/src/CMakeLists.txt ++++ b/src/CMakeLists.txt +@@ -1,13 +1,11 @@ + IF (WIN32) + ADD_DEFINITIONS (-D_CRT_SECURE_NO_WARNINGS) + ELSE (WIN32) +- SET (CMAKE_CXX_FLAGS "-Wall -fno-strict-aliasing") ++ SET (CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -Wall -fno-strict-aliasing") + + OPTION (APVLV_ENABLE_DEBUG "If build binary with debug infomations." OFF) + IF (APVLV_ENABLE_DEBUG) +- SET (CMAKE_CXX_FLAGS "-D_DEBUG -g ${CMAKE_CXX_FLAGS}") +- ELSE (APVLV_ENABLE_DEBUG) +- SET (CMAKE_CXX_FLAGS "-O2 ${CMAKE_CXX_FLAGS}") ++ SET (CMAKE_CXX_FLAGS "-D_DEBUG ${CMAKE_CXX_FLAGS}") + ENDIF (APVLV_ENABLE_DEBUG) + ENDIF (WIN32) + diff --git a/app-text/apvlv/metadata.xml b/app-text/apvlv/metadata.xml new file mode 100644 index 000000000000..d1305260168f --- /dev/null +++ b/app-text/apvlv/metadata.xml @@ -0,0 +1,14 @@ +<?xml version="1.0" encoding="UTF-8"?> +<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd"> +<pkgmetadata> + <maintainer> + <email>maintainer-needed@gentoo.org</email> + </maintainer> + <use> + <flag name="html">Build binary with html format support</flag> + </use> + <upstream> + <remote-id type="google-code">apvlv</remote-id> + <remote-id type="github">naihe2010/apvlv</remote-id> + </upstream> +</pkgmetadata> diff --git a/app-text/asa/Manifest b/app-text/asa/Manifest new file mode 100644 index 000000000000..cfb438d9968c --- /dev/null +++ b/app-text/asa/Manifest @@ -0,0 +1 @@ +DIST asa-1.1.tar.gz 9893 SHA256 7b543dcbd072b8d28ad7ef1fec8104ae574f3efba411ec82eeb2034e9245ac6c SHA512 70452783da23929d9a02cdf9cefd7403698fc8ae703ee5403dd84834b3ac39febf1edc02cb59b233cbdf51cd2f8c04922a77833dd8d851e2106de2e2fe444728 WHIRLPOOL 9179d602d604ec3c7ac2f2603a699ca31169bca6a2f66c0e90d050179821101227eeb35ef8eb46c0b595acdd9d58c8f7f891b498fcb37efe4a50c4bbdc5f1a72 diff --git a/app-text/asa/asa-1.1-r1.ebuild b/app-text/asa/asa-1.1-r1.ebuild new file mode 100644 index 000000000000..3a009fec4363 --- /dev/null +++ b/app-text/asa/asa-1.1-r1.ebuild @@ -0,0 +1,30 @@ +# Copyright 1999-2013 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Id$ + +EAPI=5 + +inherit toolchain-funcs + +DESCRIPTION="ASA Carriage control conversion for ouput by Fortran programs" +HOMEPAGE="http://www.ibiblio.org/pub/Linux/devel/lang/fortran/" +SRC_URI="http://www.ibiblio.org/pub/Linux/devel/lang/fortran/${P}.tar.gz" + +LICENSE="GPL-2" +SLOT="0" +KEYWORDS="~amd64" +IUSE="" + +src_prepare() { + sed \ + -e "s:-o:${LDFLAGS} -o:g" \ + -e "/^CFLAGS/d" \ + -i Makefile || die + tc-export CC +} + +src_install() { + dobin asa + doman asa.1 + dodoc README asa.dat +} diff --git a/app-text/asa/asa-1.1.ebuild b/app-text/asa/asa-1.1.ebuild new file mode 100644 index 000000000000..180e42d18039 --- /dev/null +++ b/app-text/asa/asa-1.1.ebuild @@ -0,0 +1,26 @@ +# Copyright 1999-2011 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Id$ + +EAPI=4 + +inherit toolchain-funcs + +DESCRIPTION="ASA Carriage control conversion for ouput by Fortran programs" +HOMEPAGE="http://www.ibiblio.org/pub/Linux/devel/lang/fortran/" +SRC_URI="http://www.ibiblio.org/pub/Linux/devel/lang/fortran/${P}.tar.gz" + +LICENSE="GPL-2" +SLOT="0" +KEYWORDS="~amd64" +IUSE="" + +src_compile() { + emake CC="$(tc-getCC)" CFLAGS="${CFLAGS}" +} + +src_install() { + dobin asa + doman asa.1 + dodoc README asa.dat +} diff --git a/app-text/asa/metadata.xml b/app-text/asa/metadata.xml new file mode 100644 index 000000000000..e50bbf15a5d3 --- /dev/null +++ b/app-text/asa/metadata.xml @@ -0,0 +1,8 @@ +<?xml version="1.0" encoding="UTF-8"?> +<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd"> +<pkgmetadata> + <maintainer> + <email>floppym@gentoo.org</email> + <name>Mike Gilbert</name> + </maintainer> +</pkgmetadata> diff --git a/app-text/asciidoc/Manifest b/app-text/asciidoc/Manifest new file mode 100644 index 000000000000..db04e2f0f033 --- /dev/null +++ b/app-text/asciidoc/Manifest @@ -0,0 +1,3 @@ +DIST asciidoc-8.6.5.tar.gz 867402 SHA256 f9da38afaf04186145739c10551341a448b3bf50a37a10392fbe584e9fb2a85f SHA512 bece29540d36a9e071a0746b08ef21a0ecf68a40ae3d593d98dd33d0ab5fcfa85b7895b545b9e5a8e33f78c7ecb142758697decf45e9c2ce26b068ca77c1f2e6 WHIRLPOOL 0c6a85fe848205cbe1b13a8717718b2c6fd6613ded252da13ead4145fdaed5ab763fb5c3c80997e69f39897c3cdd48309e9ef832f36027af75af3381255f22e8 +DIST asciidoc-8.6.8.tar.gz 900422 SHA256 ffb67f59dccaf6f15db72fcd04fdf21a2f9b703d31f94fcd0c49a424a9fcfbc4 SHA512 74c5444124f138862a92a1884b8afe8f968c9a2bbe5a8bbaa9413b0fa4f29fb1ab2eab3c59a68e6c6ddd518866f504e34f43c81406a77c1b2033fbff79df7373 WHIRLPOOL 64a8e20b9718368da7a409cd93ad1906975a09594490982d915146ab721c9b969d714a86318c65e6a328716fbe151d3d2effb012e86a3207fd7717fdbd88ee2c +DIST asciidoc-8.6.9.tar.gz 907253 SHA256 78db9d0567c8ab6570a6eff7ffdf84eadd91f2dfc0a92a2d0105d323cab4e1f0 SHA512 1984482010dbd35c3a1def67f4915ce83ecfc29a7463f84aa312107d7a9ff647978f57615462c65e885bea424eed89a212df728cc3acd3c63df1c763dfa5e955 WHIRLPOOL dbd576ed3b7bcaf46afd33d9aae7a94f82fb171fa73f0b99f737b6934f62927ea11e1290aeac141ce5de27f66a56d7ed2d110f2b0d84e0598e858eac0e52b35d diff --git a/app-text/asciidoc/asciidoc-8.6.5.ebuild b/app-text/asciidoc/asciidoc-8.6.5.ebuild new file mode 100644 index 000000000000..4a1b762a8eb6 --- /dev/null +++ b/app-text/asciidoc/asciidoc-8.6.5.ebuild @@ -0,0 +1,106 @@ +# Copyright 1999-2014 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Id$ + +EAPI="3" + +PYTHON_DEPEND="2:2.5" +RESTRICT_PYTHON_ABIS="3.*" + +[ "$PV" == "9999" ] && inherit mercurial autotools +inherit python + +DESCRIPTION="A text document format for writing short documents, articles, books and UNIX man pages" +HOMEPAGE="http://www.methods.co.nz/asciidoc/" +if [ "$PV" == "9999" ]; then + EHG_REPO_URI="https://asciidoc.googlecode.com/hg/" + SRC_URI="" + KEYWORDS="" +else + SRC_URI="mirror://sourceforge/project/${PN}/${PN}/${PV}/${P}.tar.gz" + KEYWORDS="alpha amd64 arm arm64 hppa ia64 ~mips ppc ppc64 s390 sh sparc x86 ~x86-fbsd ~x86-freebsd ~amd64-linux ~x86-linux ~ppc-macos ~x86-macos ~x86-solaris" +fi + +LICENSE="GPL-2" +SLOT="0" +IUSE="examples graphviz highlight test vim-syntax" + +RDEPEND=">=app-text/docbook-xsl-stylesheets-1.75 + dev-libs/libxslt + graphviz? ( media-gfx/graphviz ) + app-text/docbook-xml-dtd:4.5 + highlight? ( dev-util/source-highlight ) +" +DEPEND="test? ( dev-util/source-highlight + media-sound/lilypond + media-gfx/imagemagick + dev-texlive/texlive-latex + app-text/dvipng + media-gfx/graphviz ) +" + +if [ "$PV" == "9999" ]; then + DEPEND="${DEPEND} + dev-util/aap + www-client/lynx + dev-util/source-highlight" +fi + +pkg_setup() { + python_set_active_version 2 +} + +src_prepare() { + if ! use vim-syntax; then + sed -i -e '/^install/s/install-vim//' Makefile.in || die + else + sed -i\ + -e "/^vimdir/s:@sysconfdir@/vim:${EPREFIX}/usr/share/vim/vimfiles:" \ + -e 's:/etc/vim::' \ + Makefile.in || die + fi + + # Only needed for prefix - harmless (does nothing) otherwise + sed -i -e "s:^CONF_DIR=.*:CONF_DIR='${EPREFIX}/etc/asciidoc':" \ + "${S}/asciidoc.py" || die + + [ "$PV" == "9999" ] && eautoconf +} + +src_configure() { + econf --sysconfdir="${EPREFIX}"/usr/share +} + +src_compile() { + default + + if [ "$PV" == "9999" ]; then + ( cd doc && aap -f main.aap ../{CHANGELOG,README,BUGS} ) + fi +} + +src_install() { + use vim-syntax && dodir /usr/share/vim/vimfiles + + emake DESTDIR="${D}" install || die "install failed" + + python_convert_shebangs -r 2 "${D}" + + if use examples; then + # This is a symlink to a directory + rm examples/website/images || die + + insinto /usr/share/doc/${PF} + doins -r examples || die + dosym ../../../asciidoc/images /usr/share/doc/${PF}/examples || die + fi + + dodoc BUGS CHANGELOG README docbook-xsl/asciidoc-docbook-xsl.txt \ + dblatex/dblatex-readme.txt filters/code/code-filter-readme.txt || die +} + +src_test() { + cd tests || die + ASCIIDOC_PY=../asciidoc.py "$(PYTHON)" test${PN}.py update || die + ASCIIDOC_PY=../asciidoc.py "$(PYTHON)" test${PN}.py run || die +} diff --git a/app-text/asciidoc/asciidoc-8.6.8-r1.ebuild b/app-text/asciidoc/asciidoc-8.6.8-r1.ebuild new file mode 100644 index 000000000000..218bab0c9c99 --- /dev/null +++ b/app-text/asciidoc/asciidoc-8.6.8-r1.ebuild @@ -0,0 +1,107 @@ +# Copyright 1999-2015 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Id$ + +EAPI=5 + +PYTHON_COMPAT=( python2_7 pypy ) + +[ "$PV" == "9999" ] && inherit mercurial autotools +inherit python-single-r1 + +DESCRIPTION="A text document format for writing short documents, articles, books and UNIX man pages" +HOMEPAGE="http://www.methods.co.nz/asciidoc/" +if [ "$PV" == "9999" ]; then + EHG_REPO_URI="https://asciidoc.googlecode.com/hg/" + SRC_URI="" + KEYWORDS="" +else + SRC_URI="mirror://sourceforge/project/${PN}/${PN}/${PV}/${P}.tar.gz" + KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~ia64 ~mips ~ppc ~ppc64 ~s390 ~sh ~sparc ~x86 ~amd64-fbsd ~x86-fbsd ~x86-freebsd ~amd64-linux ~arm-linux ~x86-linux ~ppc-macos ~x86-macos ~x86-solaris" +fi + +LICENSE="GPL-2" +SLOT="0" +IUSE="examples graphviz highlight test vim-syntax" + +REQUIRED_USE="${PYTHON_REQUIRED_USE}" + +RDEPEND=">=app-text/docbook-xsl-stylesheets-1.75 + dev-libs/libxslt + graphviz? ( media-gfx/graphviz ) + app-text/docbook-xml-dtd:4.5 + highlight? ( || ( dev-python/pygments[${PYTHON_USEDEP}] dev-util/source-highlight ) ) + ${PYTHON_DEPS} +" +DEPEND="test? ( dev-util/source-highlight + media-sound/lilypond + media-gfx/imagemagick + dev-texlive/texlive-latex + app-text/dvipng + media-gfx/graphviz + ${PYTHON_DEPS} ) +" + +if [ "$PV" == "9999" ]; then + DEPEND="${DEPEND} + dev-util/aap + www-client/lynx + dev-util/source-highlight" +fi + +src_prepare() { + if ! use vim-syntax; then + sed -i -e '/^install/s/install-vim//' Makefile.in || die + else + sed -i\ + -e "/^vimdir/s:@sysconfdir@/vim:${EPREFIX}/usr/share/vim/vimfiles:" \ + -e 's:/etc/vim::' \ + Makefile.in || die + fi + + # Only needed for prefix - harmless (does nothing) otherwise + sed -i -e "s:^CONF_DIR=.*:CONF_DIR='${EPREFIX}/etc/asciidoc':" \ + "${S}/asciidoc.py" || die + + [ "$PV" == "9999" ] && eautoconf +} + +src_configure() { + econf --sysconfdir="${EPREFIX}"/usr/share +} + +src_compile() { + default + + if [ "$PV" == "9999" ]; then + cd doc || die + aap -f main.aap ../{CHANGELOG,README,BUGS} || die + fi +} + +src_install() { + use vim-syntax && dodir /usr/share/vim/vimfiles + + emake DESTDIR="${D}" install + + python_fix_shebang "${ED}"/usr/bin/*.py + + if use examples; then + # This is a symlink to a directory + rm examples/website/images || die + + dodoc -r examples + docompress -x /usr/share/doc/${PF}/examples + dosym ../../../asciidoc/images /usr/share/doc/${PF}/examples + fi + + dodoc BUGS CHANGELOG README docbook-xsl/asciidoc-docbook-xsl.txt \ + dblatex/dblatex-readme.txt filters/code/code-filter-readme.txt +} + +src_test() { + cd tests || die + local -x ASCIIDOC_PY=../asciidoc.py + "${PYTHON}" test${PN}.py update || die + "${PYTHON}" test${PN}.py run || die +} diff --git a/app-text/asciidoc/asciidoc-8.6.9-r1.ebuild b/app-text/asciidoc/asciidoc-8.6.9-r1.ebuild new file mode 100644 index 000000000000..1bf0d2fcc106 --- /dev/null +++ b/app-text/asciidoc/asciidoc-8.6.9-r1.ebuild @@ -0,0 +1,80 @@ +# Copyright 1999-2015 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Id$ + +EAPI=5 + +PYTHON_COMPAT=( python2_7 pypy ) + +inherit python-single-r1 + +DESCRIPTION="A text document format for writing short documents, articles, books and UNIX man pages" +HOMEPAGE="http://asciidoc.org/" +SRC_URI="mirror://sourceforge/project/${PN}/${PN}/${PV}/${P}.tar.gz" +KEYWORDS="alpha amd64 arm ~arm64 hppa ia64 ~mips ppc ppc64 ~s390 ~sh sparc x86 ~amd64-fbsd ~x86-fbsd ~x86-freebsd ~amd64-linux ~arm-linux ~x86-linux ~ppc-macos ~x86-macos ~x86-solaris" + +LICENSE="GPL-2" +SLOT="0" +IUSE="examples graphviz highlight test vim-syntax" + +REQUIRED_USE="${PYTHON_REQUIRED_USE}" + +RDEPEND=">=app-text/docbook-xsl-stylesheets-1.75 + dev-libs/libxslt + graphviz? ( media-gfx/graphviz ) + app-text/docbook-xml-dtd:4.5 + highlight? ( || ( dev-python/pygments[${PYTHON_USEDEP}] dev-util/source-highlight ) ) + ${PYTHON_DEPS} +" +DEPEND="test? ( dev-util/source-highlight + media-sound/lilypond + media-gfx/imagemagick + dev-texlive/texlive-latex + app-text/dvipng + media-gfx/graphviz + ${PYTHON_DEPS} ) +" + +src_prepare() { + if ! use vim-syntax; then + sed -i -e '/^install/s/install-vim//' Makefile.in || die + else + sed -i\ + -e "/^vimdir/s:@sysconfdir@/vim:${EPREFIX}/usr/share/vim/vimfiles:" \ + -e 's:/etc/vim::' \ + Makefile.in || die + fi + + # Only needed for prefix - harmless (does nothing) otherwise + sed -i -e "s:^CONF_DIR=.*:CONF_DIR='${EPREFIX}/etc/asciidoc':" \ + "${S}/asciidoc.py" || die +} + +src_configure() { + econf --sysconfdir="${EPREFIX}"/usr/share +} + +src_install() { + use vim-syntax && dodir /usr/share/vim/vimfiles + + emake DESTDIR="${D}" install + + python_fix_shebang "${ED}"/usr/bin/*.py + + dodoc BUGS CHANGELOG README docbook-xsl/asciidoc-docbook-xsl.txt \ + dblatex/dblatex-readme.txt filters/code/code-filter-readme.txt + + # Below results in some files being installed twice in different locations, but they are in the right place, + # uncompressed, and there won't be any broken links. See bug #483336. + if use examples; then + cp -rL examples/website "${D}"/usr/share/doc/${PF}/examples || die + fi + docompress -x /usr/share/doc/${PF}/examples +} + +src_test() { + cd tests || die + local -x ASCIIDOC_PY=../asciidoc.py + "${PYTHON}" test${PN}.py update || die + "${PYTHON}" test${PN}.py run || die +} diff --git a/app-text/asciidoc/asciidoc-8.6.9.ebuild b/app-text/asciidoc/asciidoc-8.6.9.ebuild new file mode 100644 index 000000000000..48bf7151625e --- /dev/null +++ b/app-text/asciidoc/asciidoc-8.6.9.ebuild @@ -0,0 +1,107 @@ +# Copyright 1999-2014 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Id$ + +EAPI=5 + +PYTHON_COMPAT=( python2_7 pypy ) + +[ "$PV" == "9999" ] && inherit mercurial autotools +inherit python-single-r1 + +DESCRIPTION="A text document format for writing short documents, articles, books and UNIX man pages" +HOMEPAGE="http://www.methods.co.nz/asciidoc/" +if [ "$PV" == "9999" ]; then + EHG_REPO_URI="https://asciidoc.googlecode.com/hg/" + SRC_URI="" + KEYWORDS="" +else + SRC_URI="mirror://sourceforge/project/${PN}/${PN}/${PV}/${P}.tar.gz" + KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~ia64 ~mips ~ppc ~ppc64 ~s390 ~sh ~sparc ~x86 ~amd64-fbsd ~x86-fbsd ~x86-freebsd ~amd64-linux ~arm-linux ~x86-linux ~ppc-macos ~x86-macos ~x86-solaris" +fi + +LICENSE="GPL-2" +SLOT="0" +IUSE="examples graphviz highlight test vim-syntax" + +REQUIRED_USE="${PYTHON_REQUIRED_USE}" + +RDEPEND=">=app-text/docbook-xsl-stylesheets-1.75 + dev-libs/libxslt + graphviz? ( media-gfx/graphviz ) + app-text/docbook-xml-dtd:4.5 + highlight? ( || ( dev-python/pygments[${PYTHON_USEDEP}] dev-util/source-highlight ) ) + ${PYTHON_DEPS} +" +DEPEND="test? ( dev-util/source-highlight + media-sound/lilypond + media-gfx/imagemagick + dev-texlive/texlive-latex + app-text/dvipng + media-gfx/graphviz + ${PYTHON_DEPS} ) +" + +if [ "$PV" == "9999" ]; then + DEPEND="${DEPEND} + dev-util/aap + www-client/lynx + dev-util/source-highlight" +fi + +src_prepare() { + if ! use vim-syntax; then + sed -i -e '/^install/s/install-vim//' Makefile.in || die + else + sed -i\ + -e "/^vimdir/s:@sysconfdir@/vim:${EPREFIX}/usr/share/vim/vimfiles:" \ + -e 's:/etc/vim::' \ + Makefile.in || die + fi + + # Only needed for prefix - harmless (does nothing) otherwise + sed -i -e "s:^CONF_DIR=.*:CONF_DIR='${EPREFIX}/etc/asciidoc':" \ + "${S}/asciidoc.py" || die + + [ "$PV" == "9999" ] && eautoconf +} + +src_configure() { + econf --sysconfdir="${EPREFIX}"/usr/share +} + +src_compile() { + default + + if [ "$PV" == "9999" ]; then + cd doc || die + aap -f main.aap ../{CHANGELOG,README,BUGS} || die + fi +} + +src_install() { + use vim-syntax && dodir /usr/share/vim/vimfiles + + emake DESTDIR="${D}" install + + python_fix_shebang "${ED}"/usr/bin/*.py + + if use examples; then + # This is a symlink to a directory + rm examples/website/images || die + + dodoc -r examples + docompress -x /usr/share/doc/${PF}/examples + dosym ../../../asciidoc/images /usr/share/doc/${PF}/examples + fi + + dodoc BUGS CHANGELOG README docbook-xsl/asciidoc-docbook-xsl.txt \ + dblatex/dblatex-readme.txt filters/code/code-filter-readme.txt +} + +src_test() { + cd tests || die + local -x ASCIIDOC_PY=../asciidoc.py + "${PYTHON}" test${PN}.py update || die + "${PYTHON}" test${PN}.py run || die +} diff --git a/app-text/asciidoc/asciidoc-9999.ebuild b/app-text/asciidoc/asciidoc-9999.ebuild new file mode 100644 index 000000000000..038e1f95e6d0 --- /dev/null +++ b/app-text/asciidoc/asciidoc-9999.ebuild @@ -0,0 +1,107 @@ +# Copyright 1999-2015 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Id$ + +EAPI=5 + +PYTHON_COMPAT=( python2_7 pypy ) + +[ "$PV" == "9999" ] && inherit mercurial autotools +inherit python-single-r1 + +DESCRIPTION="A text document format for writing short documents, articles, books and UNIX man pages" +HOMEPAGE="http://www.methods.co.nz/asciidoc/" +if [ "$PV" == "9999" ]; then + EHG_REPO_URI="https://asciidoc.googlecode.com/hg/" + SRC_URI="" + KEYWORDS="" +else + SRC_URI="mirror://sourceforge/project/${PN}/${PN}/${PV}/${P}.tar.gz" + KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~ia64 ~mips ~ppc ~ppc64 ~s390 ~sh ~sparc ~x86 ~amd64-fbsd ~x86-fbsd ~x86-freebsd ~amd64-linux ~arm-linux ~x86-linux ~ppc-macos ~x86-macos ~x86-solaris" +fi + +LICENSE="GPL-2" +SLOT="0" +IUSE="examples graphviz highlight test vim-syntax" + +REQUIRED_USE="highlight? ( ${PYTHON_REQUIRED_USE} )" + +RDEPEND=">=app-text/docbook-xsl-stylesheets-1.75 + dev-libs/libxslt + graphviz? ( media-gfx/graphviz ) + app-text/docbook-xml-dtd:4.5 + highlight? ( || ( dev-python/pygments[${PYTHON_USEDEP}] dev-util/source-highlight ) ) + ${PYTHON_DEPS} +" +DEPEND="test? ( dev-util/source-highlight + media-sound/lilypond + media-gfx/imagemagick + dev-texlive/texlive-latex + app-text/dvipng + media-gfx/graphviz + ${PYTHON_DEPS} ) +" + +if [ "$PV" == "9999" ]; then + DEPEND="${DEPEND} + dev-util/aap + www-client/lynx + dev-util/source-highlight" +fi + +src_prepare() { + if ! use vim-syntax; then + sed -i -e '/^install/s/install-vim//' Makefile.in || die + else + sed -i\ + -e "/^vimdir/s:@sysconfdir@/vim:${EPREFIX}/usr/share/vim/vimfiles:" \ + -e 's:/etc/vim::' \ + Makefile.in || die + fi + + # Only needed for prefix - harmless (does nothing) otherwise + sed -i -e "s:^CONF_DIR=.*:CONF_DIR='${EPREFIX}/etc/asciidoc':" \ + "${S}/asciidoc.py" || die + + [ "$PV" == "9999" ] && eautoconf +} + +src_configure() { + econf --sysconfdir="${EPREFIX}"/usr/share +} + +src_compile() { + default + + if [ "$PV" == "9999" ]; then + cd doc || die + aap -f main.aap ../{CHANGELOG,README,BUGS} || die + fi +} + +src_install() { + use vim-syntax && dodir /usr/share/vim/vimfiles + + emake DESTDIR="${D}" install + + python_fix_shebang "${ED}"/usr/bin/*.py + + if use examples; then + # This is a symlink to a directory + rm examples/website/images || die + + dodoc -r examples + docompress -x /usr/share/doc/${PF}/examples + dosym ../../../asciidoc/images /usr/share/doc/${PF}/examples + fi + + dodoc BUGS CHANGELOG README docbook-xsl/asciidoc-docbook-xsl.txt \ + dblatex/dblatex-readme.txt filters/code/code-filter-readme.txt +} + +src_test() { + cd tests || die + local -x ASCIIDOC_PY=../asciidoc.py + "${PYTHON}" test${PN}.py update || die + "${PYTHON}" test${PN}.py run || die +} diff --git a/app-text/asciidoc/metadata.xml b/app-text/asciidoc/metadata.xml new file mode 100644 index 000000000000..5b4dfcac326f --- /dev/null +++ b/app-text/asciidoc/metadata.xml @@ -0,0 +1,14 @@ +<?xml version="1.0" encoding="UTF-8"?> +<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd"> +<pkgmetadata> + <maintainer> + <email>djc@gentoo.org</email> + <name>Dirkjan Ochtman</name> + </maintainer> + <use> + <flag name="highlight">Enable source code highlighting</flag> + </use> + <upstream> + <remote-id type="sourceforge">asciidoc</remote-id> + </upstream> +</pkgmetadata> diff --git a/app-text/aspell/Manifest b/app-text/aspell/Manifest new file mode 100644 index 000000000000..c9946b7a6125 --- /dev/null +++ b/app-text/aspell/Manifest @@ -0,0 +1 @@ +DIST aspell-0.60.6.1.tar.gz 1878163 SHA256 f52583a83a63633701c5f71db3dc40aab87b7f76b29723aeb27941eff42df6e1 SHA512 f310c7590be98406589b5c26ca36a2ecfe4733f0b40fd6c176b96b7955ef2b5cd0ec9a3d770cf132146ae7a896042b4b698945112995ee1ae66adcfa5542247f WHIRLPOOL 0c77b95a29b598491c12cf22737d5ff758b2758b4f815356d2f52da398afe2b45209cd3b59f90e5b3c1976ee8a09e8cd553507bd93a0cd49043c8531f9a4990b diff --git a/app-text/aspell/aspell-0.60.6.1-r1.ebuild b/app-text/aspell/aspell-0.60.6.1-r1.ebuild new file mode 100644 index 000000000000..f5239607b139 --- /dev/null +++ b/app-text/aspell/aspell-0.60.6.1-r1.ebuild @@ -0,0 +1,108 @@ +# Copyright 1999-2015 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Id$ + +EAPI=5 + +inherit autotools eutils flag-o-matic libtool toolchain-funcs + +DESCRIPTION="A spell checker replacement for ispell" +HOMEPAGE="http://aspell.net/" +SRC_URI="mirror://gnu/aspell/${P}.tar.gz" + +LICENSE="LGPL-2" +SLOT="0" +KEYWORDS="alpha amd64 arm hppa ia64 ~m68k ~mips ppc ppc64 ~s390 ~sh sparc x86 ~amd64-fbsd ~sparc-fbsd ~x86-fbsd ~amd64-linux ~x86-linux ~ppc-macos ~x64-macos ~x86-macos ~sparc-solaris ~x86-solaris" +IUSE="nls" + +PDEPEND="app-dicts/aspell-en" +LANGS="af be bg br ca cs cy da de el en eo es et fi fo fr ga gl he hr is it la +lt nl no pl pt pt_BR ro ru sk sl sr sv uk vi" +for lang in ${LANGS}; do + dep="linguas_${lang}? ( app-dicts/aspell-${lang/pt_BR/pt-br} )" + if [[ ${lang} == de ]] ; then + dep="linguas_${lang}? ( + || ( + app-dicts/aspell-${lang} + app-dicts/aspell-${lang}-alt + ) + )" + fi + PDEPEND+=" ${dep}" + IUSE+=" linguas_${lang}" +done +unset dep + +COMMON_DEPEND=" + >=sys-libs/ncurses-5.2 + nls? ( virtual/libintl )" + +DEPEND="${COMMON_DEPEND} + virtual/pkgconfig + nls? ( sys-devel/gettext )" + +# English dictionary 0.5 is incompatible with aspell-0.6 +RDEPEND="${COMMON_DEPEND} + !=app-dicts/aspell-en-0.5*" + +src_prepare() { + # fix for bug #467602 + if has_version ">=sys-devel/automake-1.13" ; then + sed -i -e 's/AM_CONFIG_HEADER/AC_CONFIG_HEADERS/g' \ + "${S}"/configure.ac || die + fi + + epatch \ + "${FILESDIR}/${PN}-0.60.5-nls.patch" \ + "${FILESDIR}/${PN}-0.60.5-solaris.patch" \ + "${FILESDIR}/${PN}-0.60.6-darwin-bundles.patch" + + rm m4/lt* m4/libtool.m4 + eautoreconf + elibtoolize --reverse-deps + + # Parallel install of libtool libraries doesn't always work. + # https://lists.gnu.org/archive/html/libtool/2011-03/msg00003.html + # This has to be after automake has run so that we don't clobber + # the default target that automake creates for us. + echo 'install-filterLTLIBRARIES: install-libLTLIBRARIES' >> Makefile.in || die + +} + +src_configure() { + if has_version "sys-libs/ncurses[unicode]" ; then + CURSES_LIB="$($(tc-getPKG_CONFIG) --libs ncursesw)" + else + CURSES_LIB="$($(tc-getPKG_CONFIG) --libs ncurses)" + fi + + CURSES_LIB="${CURSES_LIB}" econf \ + $(use_enable nls) \ + --disable-static \ + --sysconfdir="${EPREFIX}"/etc/aspell \ + --enable-docdir="${EPREFIX}"/usr/share/doc/${PF} +} + +src_install() { + default + + dodoc README* TODO + dohtml -r manual/aspell{,-dev}.html + docinto examples + dodoc "${S}"/examples/*.c + + # install ispell/aspell compatibility scripts + newbin scripts/ispell ispell-aspell + newbin scripts/spell spell-aspell + + prune_libtool_files +} + +pkg_postinst() { + elog "In case LINGUAS was not set correctly you may need to install" + elog "dictionaries now. Please choose an aspell-<LANG> dictionary or" + elog "set LINGUAS correctly and let aspell pull in required packages." + elog "After installing an aspell dictionary for your language(s)," + elog "You may use the aspell-import utility to import your personal" + elog "dictionaries from ispell, pspell and the older aspell" +} diff --git a/app-text/aspell/aspell-0.60.6.1-r2.ebuild b/app-text/aspell/aspell-0.60.6.1-r2.ebuild new file mode 100644 index 000000000000..fb5fd3ebdf9a --- /dev/null +++ b/app-text/aspell/aspell-0.60.6.1-r2.ebuild @@ -0,0 +1,101 @@ +# Copyright 1999-2015 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Id$ + +EAPI=5 + +inherit autotools eutils flag-o-matic libtool toolchain-funcs + +DESCRIPTION="A spell checker replacement for ispell" +HOMEPAGE="http://aspell.net/" +SRC_URI="mirror://gnu/aspell/${P}.tar.gz" + +LICENSE="LGPL-2" +SLOT="0" +KEYWORDS="~alpha ~amd64 ~arm ~hppa ~ia64 ~m68k ~mips ~ppc ~ppc64 ~s390 ~sh ~sparc ~x86 ~amd64-fbsd ~sparc-fbsd ~x86-fbsd ~amd64-linux ~x86-linux ~ppc-macos ~x64-macos ~x86-macos ~sparc-solaris ~x86-solaris" +IUSE="nls" + +PDEPEND="app-dicts/aspell-en" +LANGS="af be bg br ca cs cy da de el en eo es et fi fo fr ga gl he hr hu hy is it la +lt nl no pl pt pt_BR ro ru sk sl sr sv uk vi" +for lang in ${LANGS}; do + dep="linguas_${lang}? ( app-dicts/aspell-${lang/pt_BR/pt-br} )" + if [[ ${lang} == de ]] ; then + dep="linguas_${lang}? ( + || ( + app-dicts/aspell-${lang} + app-dicts/aspell-${lang}-alt + ) + )" + fi + PDEPEND+=" ${dep}" + IUSE+=" linguas_${lang}" +done +unset dep + +COMMON_DEPEND=" + >=sys-libs/ncurses-5.2 + nls? ( virtual/libintl ) +" +DEPEND="${COMMON_DEPEND} + virtual/pkgconfig + nls? ( sys-devel/gettext ) +" + +# English dictionary 0.5 is incompatible with aspell-0.6 +RDEPEND="${COMMON_DEPEND} + !=app-dicts/aspell-en-0.5* +" + +src_prepare() { + # fix for bug #467602 + if has_version ">=sys-devel/automake-1.13" ; then + sed -i -e 's/AM_CONFIG_HEADER/AC_CONFIG_HEADERS/g' \ + "${S}"/configure.ac || die + fi + + epatch \ + "${FILESDIR}/${PN}-0.60.5-nls.patch" \ + "${FILESDIR}/${PN}-0.60.5-solaris.patch" \ + "${FILESDIR}/${PN}-0.60.6-darwin-bundles.patch" + + rm m4/lt* m4/libtool.m4 + eautoreconf + elibtoolize --reverse-deps + + # Parallel install of libtool libraries doesn't always work. + # https://lists.gnu.org/archive/html/libtool/2011-03/msg00003.html + # This has to be after automake has run so that we don't clobber + # the default target that automake creates for us. + echo 'install-filterLTLIBRARIES: install-libLTLIBRARIES' >> Makefile.in || die + +} + +src_configure() { + if has_version "sys-libs/ncurses[unicode]" ; then + CURSES_LIB="$($(tc-getPKG_CONFIG) --libs ncursesw)" + else + CURSES_LIB="$($(tc-getPKG_CONFIG) --libs ncurses)" + fi + + CURSES_LIB="${CURSES_LIB}" econf \ + $(use_enable nls) \ + --disable-static \ + --sysconfdir="${EPREFIX}"/etc/aspell \ + --enable-docdir="${EPREFIX}"/usr/share/doc/${PF} +} + +src_install() { + default + + dodoc README* TODO + dohtml -r manual/aspell{,-dev}.html + docinto examples + dodoc "${S}"/examples/*.c + + # install ispell/aspell compatibility scripts + newbin scripts/ispell ispell-aspell + newbin scripts/spell spell-aspell + + prune_libtool_files --modules +} diff --git a/app-text/aspell/files/aspell-0.60.5-nls.patch b/app-text/aspell/files/aspell-0.60.5-nls.patch new file mode 100644 index 000000000000..3ea7c7c3f4ec --- /dev/null +++ b/app-text/aspell/files/aspell-0.60.5-nls.patch @@ -0,0 +1,13 @@ +Index: aspell-0.60.5/Makefile.am +=================================================================== +--- aspell-0.60.5/Makefile.am ++++ aspell-0.60.5/Makefile.am +@@ -129,7 +129,7 @@ word_list_compress_SOURCES = prog/compre + + aspell_SOURCES = prog/aspell.cpp prog/check_funs.cpp prog/checker_string.cpp + +-aspell_LDADD = libaspell.la $(CURSES_LIB) ++aspell_LDADD = libaspell.la $(CURSES_LIB) $(LTLIBINTL) + + prezip_bin_SOURCES = prog/prezip.c + diff --git a/app-text/aspell/files/aspell-0.60.5-solaris.patch b/app-text/aspell/files/aspell-0.60.5-solaris.patch new file mode 100644 index 000000000000..fc1920a4f57a --- /dev/null +++ b/app-text/aspell/files/aspell-0.60.5-solaris.patch @@ -0,0 +1,27 @@ +* grobian@gentoo.org: on Solaris 10 _XOPEN_SOURCE_EXTENDED may not be + defined when including wchar.h with g++ + +--- prog/check_funs.cpp ++++ prog/check_funs.cpp +@@ -18,10 +18,6 @@ + + #include "settings.h" + +-#ifdef DEFINE_XOPEN_SOURCE_EXTENDED +-# define _XOPEN_SOURCE_EXTENDED 1 +-#endif +- + #ifdef CURSES_NON_POSIX + #define CURSES_ONLY 1 + #endif +@@ -35,6 +31,10 @@ + + #include "gettext.h" + ++#ifdef DEFINE_XOPEN_SOURCE_EXTENDED ++# define _XOPEN_SOURCE_EXTENDED 1 ++#endif ++ + using namespace acommon; + + StackPtr<CheckerString> state; diff --git a/app-text/aspell/files/aspell-0.60.6-darwin-bundles.patch b/app-text/aspell/files/aspell-0.60.6-darwin-bundles.patch new file mode 100644 index 000000000000..39178587f685 --- /dev/null +++ b/app-text/aspell/files/aspell-0.60.6-darwin-bundles.patch @@ -0,0 +1,35 @@ +grobian@gentoo.org: +Darwin: fix for finding bundles (libtool modules, no equivalent in ELF) +This patch is not really upstreamable, bundles can have any name, but +Apple suggests using .bundle. libtool on Gentoo generates .bundle files +for modules on Darwin, so we need aspell to actually look for .bundle, +not .so. + +--- lib/new_filter.cpp ++++ lib/new_filter.cpp +@@ -458,11 +458,23 @@ + module->file.assign(option_file.str(), slash + 1 - option_file.str()); + //module->file += "lib"; + module->file += filter_name; +- module->file += "-filter.so"; ++ module->file += "-filter." ++#ifdef __APPLE_CC__ ++ "bundle" ++#else ++ "so" ++#endif ++ ; + } else { + if (module->file[0] != '/') + module->file.insert(0, option_file.str(), slash + 1 - option_file.str()); +- module->file += ".so"; ++ module->file += "." ++#ifdef __APPLE_CC__ ++ "bundle" ++#else ++ "so" ++#endif ++ ; + } + + return module.release(); diff --git a/app-text/aspell/metadata.xml b/app-text/aspell/metadata.xml new file mode 100644 index 000000000000..d9cd2cad66c2 --- /dev/null +++ b/app-text/aspell/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>maintainer-needed@gentoo.org</email> +</maintainer> +</pkgmetadata> diff --git a/app-text/atril/Manifest b/app-text/atril/Manifest new file mode 100644 index 000000000000..b42976e2de4d --- /dev/null +++ b/app-text/atril/Manifest @@ -0,0 +1,2 @@ +DIST atril-1.8.0.tar.xz 1572068 SHA256 99f4f1e100a4eec696feabbb56d653addd8dbe851c9748d2e929e158524c2dad SHA512 054c1391ea3de196a240b1d0b6eb7402a1472475979ff9603396df7f47b32ed681855aff37c379c7e02e814209e6511c8e3fcc8c13c12b795ff6fd7a0ecdca56 WHIRLPOOL 40e3700485c5c018e5369e410fc24bc18ede6b0be6624777c2df59fff0389cec4ca4331514c70b7547782cc4afde3d75f706b232a260fff21dd758805153f335 +DIST atril-1.8.1.tar.xz 1577776 SHA256 036b6bdf9f9caa7468c0cfb680360420cf8477007a0a04dc3b5c50b163c0333f SHA512 1a4a36135a39d216f1cfe5fb91c9d3c16d11da92fbb6b08c314ee09877c7232022a6653649a109ee7a7838a219015f5caab68b2a210399db96f87e4bae520518 WHIRLPOOL 7134a87e8cb3f490677f95f1b05716a4f14e2f8db2bd72d72e9462b061042d9247aca1340b606654aedded43277539c229999198734c4c614842c1aeb2f94fce diff --git a/app-text/atril/atril-1.8.0.ebuild b/app-text/atril/atril-1.8.0.ebuild new file mode 100644 index 000000000000..52230e04b249 --- /dev/null +++ b/app-text/atril/atril-1.8.0.ebuild @@ -0,0 +1,98 @@ +# Copyright 1999-2015 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Id$ + +EAPI="5" + +ELTCONF="--portage" +GCONF_DEBUG="yes" +GNOME2_LA_PUNT="yes" + +inherit autotools gnome2 versionator + +MATE_BRANCH="$(get_version_component_range 1-2)" + +SRC_URI="http://pub.mate-desktop.org/releases/${MATE_BRANCH}/${P}.tar.xz" +DESCRIPTION="Atril document viewer for MATE" +HOMEPAGE="http://mate-desktop.org" + +LICENSE="GPL-2" +SLOT="0" +KEYWORDS="amd64 x86" + +IUSE="caja dbus debug djvu dvi +introspection gnome-keyring +ps t1lib tiff xps" + +RDEPEND=">=app-text/poppler-0.14:0=[cairo] + app-text/rarian:0 + dev-libs/atk:0 + >=dev-libs/glib-2.32:2 + >=dev-libs/libxml2-2.5:2 + >=mate-base/mate-desktop-1.8:0 + sys-libs/zlib:0 + x11-libs/gdk-pixbuf:2 + >=x11-libs/gtk+-2.21.5:2[introspection?] + x11-libs/libICE:0 + >=x11-libs/libSM-1:0 + x11-libs/libX11:0 + >=x11-libs/cairo-1.9.10:0 + x11-libs/pango:0 + >=x11-themes/mate-icon-theme-1.8:0 + caja? ( >=mate-base/caja-1.8:0[introspection?] ) + djvu? ( >=app-text/djvu-3.5.17:0 ) + dvi? ( + virtual/tex-base:0 + t1lib? ( >=media-libs/t1lib-5:5 ) + ) + gnome-keyring? ( >=app-crypt/libsecret-0.5:0 ) + introspection? ( >=dev-libs/gobject-introspection-0.6:0 ) + ps? ( >=app-text/libspectre-0.2:0 ) + tiff? ( >=media-libs/tiff-3.6:0 ) + xps? ( >=app-text/libgxps-0.0.1:0 ) + !!app-text/mate-document-viewer" + +DEPEND="${RDEPEND} + app-text/docbook-xml-dtd:4.1.2 + app-text/yelp-tools:0 + >=app-text/scrollkeeper-dtd-1:1.0 + >=dev-util/intltool-0.35:* + virtual/pkgconfig:* + sys-devel/gettext:*" + +# Tests use dogtail which is not available on Gentoo. +RESTRICT="test" + +src_prepare() { + # Fix .desktop categories, upstream bug #666346. + sed -e "s:GTK\;Graphics\;VectorGraphics\;Viewer\;:GTK\;Office\;Viewer\;Graphics\;VectorGraphics;:g" -i data/atril.desktop.in.in || die + + # Always autoreconf due to lib path conflict. + eautoreconf + + gnome2_src_prepare +} + +src_configure() { + # Passing --disable-help would drop offline help, that would be inconsistent + # with helps of the most of GNOME apps that doesn't require network for that. + gnome2_src_configure \ + --disable-tests \ + --enable-comics \ + --enable-pdf \ + --enable-pixbuf \ + --enable-thumbnailer \ + --with-smclient=xsmp \ + --with-platform=mate \ + --with-gtk=2.0 \ + $(use_enable dbus) \ + $(use_enable djvu) \ + $(use_enable dvi) \ + $(use_with gnome-keyring keyring) \ + $(use_enable introspection) \ + $(use_enable caja) \ + $(use_enable ps) \ + $(use_enable t1lib) \ + $(use_enable tiff) \ + $(use_enable xps) +} + +DOCS="AUTHORS NEWS README TODO" diff --git a/app-text/atril/atril-1.8.1.ebuild b/app-text/atril/atril-1.8.1.ebuild new file mode 100644 index 000000000000..04d0477aab80 --- /dev/null +++ b/app-text/atril/atril-1.8.1.ebuild @@ -0,0 +1,98 @@ +# Copyright 1999-2015 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Id$ + +EAPI="5" + +ELTCONF="--portage" +GCONF_DEBUG="yes" +GNOME2_LA_PUNT="yes" + +inherit autotools gnome2 versionator + +MATE_BRANCH="$(get_version_component_range 1-2)" + +SRC_URI="http://pub.mate-desktop.org/releases/${MATE_BRANCH}/${P}.tar.xz" +DESCRIPTION="Atril document viewer for MATE" +HOMEPAGE="http://mate-desktop.org" + +LICENSE="GPL-2" +SLOT="0" +KEYWORDS="~amd64 ~x86" + +IUSE="caja dbus debug djvu dvi +introspection gnome-keyring +ps t1lib tiff xps" + +RDEPEND=">=app-text/poppler-0.14:0=[cairo] + app-text/rarian:0 + dev-libs/atk:0 + >=dev-libs/glib-2.32:2 + >=dev-libs/libxml2-2.5:2 + >=mate-base/mate-desktop-1.8:0 + sys-libs/zlib:0 + x11-libs/gdk-pixbuf:2 + >=x11-libs/gtk+-2.21.5:2[introspection?] + x11-libs/libICE:0 + >=x11-libs/libSM-1:0 + x11-libs/libX11:0 + >=x11-libs/cairo-1.9.10:0 + x11-libs/pango:0 + >=x11-themes/mate-icon-theme-1.8:0 + caja? ( >=mate-base/caja-1.8:0[introspection?] ) + djvu? ( >=app-text/djvu-3.5.17:0 ) + dvi? ( + virtual/tex-base:0 + t1lib? ( >=media-libs/t1lib-5:5 ) + ) + gnome-keyring? ( >=app-crypt/libsecret-0.5:0 ) + introspection? ( >=dev-libs/gobject-introspection-0.6:0 ) + ps? ( >=app-text/libspectre-0.2:0 ) + tiff? ( >=media-libs/tiff-3.6:0 ) + xps? ( >=app-text/libgxps-0.0.1:0 ) + !!app-text/mate-document-viewer" + +DEPEND="${RDEPEND} + app-text/docbook-xml-dtd:4.1.2 + app-text/yelp-tools:0 + >=app-text/scrollkeeper-dtd-1:1.0 + >=dev-util/intltool-0.35:* + virtual/pkgconfig:* + sys-devel/gettext:*" + +# Tests use dogtail which is not available on Gentoo. +RESTRICT="test" + +src_prepare() { + # Fix .desktop categories, upstream bug #666346. + sed -e "s:GTK\;Graphics\;VectorGraphics\;Viewer\;:GTK\;Office\;Viewer\;Graphics\;VectorGraphics;:g" -i data/atril.desktop.in.in || die + + # Always autoreconf due to lib path conflict. + eautoreconf + + gnome2_src_prepare +} + +src_configure() { + # Passing --disable-help would drop offline help, that would be inconsistent + # with helps of the most of GNOME apps that doesn't require network for that. + gnome2_src_configure \ + --disable-tests \ + --enable-comics \ + --enable-pdf \ + --enable-pixbuf \ + --enable-thumbnailer \ + --with-smclient=xsmp \ + --with-platform=mate \ + --with-gtk=2.0 \ + $(use_enable dbus) \ + $(use_enable djvu) \ + $(use_enable dvi) \ + $(use_with gnome-keyring keyring) \ + $(use_enable introspection) \ + $(use_enable caja) \ + $(use_enable ps) \ + $(use_enable t1lib) \ + $(use_enable tiff) \ + $(use_enable xps) +} + +DOCS="AUTHORS NEWS README TODO" diff --git a/app-text/atril/metadata.xml b/app-text/atril/metadata.xml new file mode 100644 index 000000000000..d1de444c7661 --- /dev/null +++ b/app-text/atril/metadata.xml @@ -0,0 +1,18 @@ +<?xml version="1.0" encoding="UTF-8"?> +<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd"> +<pkgmetadata> + <herd>mate</herd> + <use> + <flag name="caja">Enable property page extension in + <pkg>mate-base/mate-file-manager</pkg></flag> + <flag name="dvi">Enable build-in DVI viewer</flag> + <flag name="ps">Enable build-in postscript viewer</flag> + <flag name="t1lib">Enable the Type-1 fonts for the build-in DVI viewer + (<pkg>media-libs/t1lib</pkg>)</flag> + <flag name="xps">Enable XPS viewer using + <pkg>app-text/libxps</pkg></flag> + </use> + <upstream> + <remote-id type="github">mate-desktop/atril</remote-id> + </upstream> +</pkgmetadata> diff --git a/app-text/bact/Manifest b/app-text/bact/Manifest new file mode 100644 index 000000000000..c92707c06394 --- /dev/null +++ b/app-text/bact/Manifest @@ -0,0 +1 @@ +DIST bact-0.13.tar.gz 230681 SHA256 4aa55c30621afd3793bd15471b3c0d77d3b489051cbfb30a9f0640de8928ab40 SHA512 ba531c41d93e60699d9a06bd1d1df71f6fb1559c1cccd86756a88bcf72279065d3c565cbb1664444cb74fa25a3472d77682419fe9efa8881d73b23f0bcddb9f8 WHIRLPOOL a7157b6600f24c80aaa2dff5db1a8ce74085985b839c59f0020569073a8fb2b879ad2d8df0ea50fa46c62e05bac6d2588de1f8465b7d939677c57f360c6a7dde diff --git a/app-text/bact/bact-0.13.ebuild b/app-text/bact/bact-0.13.ebuild new file mode 100644 index 000000000000..98d29fb5500b --- /dev/null +++ b/app-text/bact/bact-0.13.ebuild @@ -0,0 +1,34 @@ +# Copyright 1999-2012 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Id$ + +EAPI=4 + +inherit toolchain-funcs + +DESCRIPTION="Boosting Algorithm for Classification of Trees" +HOMEPAGE="http://chasen.org/~taku/software/bact/" +SRC_URI="http://chasen.org/~taku/software/bact/${P}.tar.gz" + +LICENSE="GPL-2" +SLOT="0" +KEYWORDS="~amd64 ~x86" +IUSE="" + +DEPEND="" +RDEPEND="${DEPEND}" + +src_compile() { + emake CXX="$(tc-getCXX)" CXXFLAGS="${CXXFLAGS}" LDFLAGS="${LDFLAGS}" +} + +src_test() { + emake test +} + +src_install() { + dobin bact_learn bact_mkmodel bact_classify + + dohtml index.html bact.css + dodoc README AUTHORS +} diff --git a/app-text/bact/metadata.xml b/app-text/bact/metadata.xml new file mode 100644 index 000000000000..0bc446484cc8 --- /dev/null +++ b/app-text/bact/metadata.xml @@ -0,0 +1,13 @@ +<?xml version="1.0" encoding="UTF-8"?> +<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd"> +<pkgmetadata> + <maintainer> + <email>maintainer-needed@gentoo.org</email> + </maintainer> + <longdescription lang="en"> + BACT is an implementation of [Kudo & Matsumoto 2004], and is + designed to handle the tree classification problem. The important + characteristic is that the input example x is represented not as a + numerical feature vector (bag-of-words) but a labeled ordered tree. + </longdescription> +</pkgmetadata> diff --git a/app-text/barcode/Manifest b/app-text/barcode/Manifest new file mode 100644 index 000000000000..bf8f04590f43 --- /dev/null +++ b/app-text/barcode/Manifest @@ -0,0 +1 @@ +DIST barcode-0.98.tar.gz 335658 SHA256 4229e19279b9787ac7e98852fa0bfd93986dce93b9cb07d93a017d68d409b635 SHA512 b2ff43d0c752a9fe7c17d65ef136ff2432ceddd27879c91cb18e46e9b0fc8ed6c174aa4154c0fa6d6e70c478ac86448b8eafa1857bb759159b2eaecc8d6f7ca1 WHIRLPOOL 30bdb0037b5c69e6638175c27f96cce3329934b4febb634c48bd1b3b49cf2b6ef20462bb93432e4b3965f6f9f6a2f3d33d80a3dfa9365d9b69c993403a159327 diff --git a/app-text/barcode/barcode-0.98-r1.ebuild b/app-text/barcode/barcode-0.98-r1.ebuild new file mode 100644 index 000000000000..4da85c5fcdfe --- /dev/null +++ b/app-text/barcode/barcode-0.98-r1.ebuild @@ -0,0 +1,37 @@ +# Copyright 1999-2014 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Id$ + +EAPI=5 + +inherit eutils multilib toolchain-funcs + +DESCRIPTION="barcode generator" +HOMEPAGE="http://www.gnu.org/software/barcode/" +SRC_URI="mirror://gnu/barcode/${P}.tar.gz" + +LICENSE="GPL-2" +SLOT="0" +KEYWORDS="amd64 ~arm ~ppc ~ppc64 x86 ~amd64-linux ~x86-linux ~ppc-macos" +IUSE="" +RDEPEND="app-text/libpaper" +DEPEND="${RDEPEND}" + +src_prepare() { + epatch "${FILESDIR}"/${PV}-info.patch + sed -i -e '/^LDFLAGS =/s:=:+=:' \ + -e "/^aLIBDIR/s:lib:$(get_libdir):" \ + -e '/^INFODIR/s:info:share/info:' \ + -e '/^MAN/s:man:share/man:' \ + Makefile.in || die +} + +src_configure() { + tc-export CC + econf +} + +src_install() { + emake install prefix="${ED}/usr" + dodoc ChangeLog README TODO doc/barcode.{pdf,ps} +} diff --git a/app-text/barcode/files/0.98-info.patch b/app-text/barcode/files/0.98-info.patch new file mode 100644 index 000000000000..740458f88ed4 --- /dev/null +++ b/app-text/barcode/files/0.98-info.patch @@ -0,0 +1,14 @@ +--- doc/barcode.info.old 2003-10-26 19:08:39.000000000 -0800 ++++ doc/barcode.info 2003-10-26 19:58:42.179447512 -0800 +@@ -1,6 +1,11 @@ + This is barcode.info, produced by makeinfo version 4.0 from + barcode.texinfo. + ++INFO-DIR-SECTION Miscellaneous ++START-INFO-DIR-ENTRY ++* Barcode: (barcode). Barcode generation library. ++END-INFO-DIR-ENTRY ++ + This file is the User's Manual for the barcode library (version + 0.98). + diff --git a/app-text/barcode/metadata.xml b/app-text/barcode/metadata.xml new file mode 100644 index 000000000000..01598fe69ee3 --- /dev/null +++ b/app-text/barcode/metadata.xml @@ -0,0 +1,8 @@ +<?xml version="1.0" encoding="UTF-8"?> +<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd"> +<pkgmetadata> +<maintainer> + <email>tamiko@gentoo.org</email> + <name>Matthias Maier</name> +</maintainer> +</pkgmetadata> diff --git a/app-text/bdf2psf/Manifest b/app-text/bdf2psf/Manifest new file mode 100644 index 000000000000..45027c14bf90 --- /dev/null +++ b/app-text/bdf2psf/Manifest @@ -0,0 +1,2 @@ +DIST console-setup_1.104.tar.gz 3272857 SHA256 ad3b4156b4b39f59e5d84d53eaa91858d5b4a36ecbffb3ba6b78151316ebcede SHA512 72b07a0ed955069777c1691b16753534630bcbdb5cd94f05ae95e8c27436c233598f01418fbf52a29b6ecf7d8217e6af841778d8e5d329569f2f585b538ba03e WHIRLPOOL e3a83ca20dcc9cfaecfdc075886bb0f7195b38fcfdd43a89d9efc746dff104c6e06f31704ffc2b708f228eb43f4bd76873850d29f3451cc833c31b385dc7dd8d +DIST console-setup_1.113.tar.xz 1819876 SHA256 d6b3780d084b65d6e907aaa1903860f48c82df2a980d365e1eeb1b2cf118f9f6 SHA512 20b37a9ed404e441efa0760db17e560736484cefe13b5e470bf868cacd6e42fc4659a8d274556e8ad6bd646364eb58e2326010d4c566b210c033071fce4211b8 WHIRLPOOL 0ac3f23492a52d89127667f4a54e31dd2ea325a7f0b78487daeda4047c24ef359081ce763f15df199fd317db396b589d9db1bc2954966ebf91f91f2d69eb7ca2 diff --git a/app-text/bdf2psf/bdf2psf-1.104.ebuild b/app-text/bdf2psf/bdf2psf-1.104.ebuild new file mode 100644 index 000000000000..f967e957f37a --- /dev/null +++ b/app-text/bdf2psf/bdf2psf-1.104.ebuild @@ -0,0 +1,33 @@ +# Copyright 1999-2015 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Id$ + +EAPI=5 + +DESCRIPTION="Converter to generate console fonts from BDF source fonts" +HOMEPAGE="http://packages.debian.org/sid/bdf2psf" +SRC_URI="mirror://debian/pool/main/c/console-setup/console-setup_${PV}.tar.gz" + +LICENSE="GPL-2" +SLOT="0" +KEYWORDS="~alpha ~amd64 ~arm ~ia64 ~ppc ~ppc64 ~s390 ~sh ~sparc ~x86 ~x86-fbsd" +IUSE="" + +DEPEND="" +RDEPEND="dev-lang/perl" + +S="${WORKDIR}/console-setup-${PV}" + +src_compile() { + : +} + +src_install() { + dobin Fonts/bdf2psf + + insinto usr/share/bdf2psf + doins -r Fonts/*.equivalents Fonts/*.set Fonts/fontsets + + doman man/bdf2psf.1 + dodoc debian/README.fontsets +} diff --git a/app-text/bdf2psf/bdf2psf-1.113.ebuild b/app-text/bdf2psf/bdf2psf-1.113.ebuild new file mode 100644 index 000000000000..43267ae8effd --- /dev/null +++ b/app-text/bdf2psf/bdf2psf-1.113.ebuild @@ -0,0 +1,33 @@ +# Copyright 1999-2015 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Id$ + +EAPI=5 + +DESCRIPTION="Converter to generate console fonts from BDF source fonts" +HOMEPAGE="http://packages.debian.org/sid/bdf2psf" +SRC_URI="mirror://debian/pool/main/c/console-setup/console-setup_${PV}.tar.xz" + +LICENSE="GPL-2" +SLOT="0" +KEYWORDS="~alpha ~amd64 ~arm ~ia64 ~ppc ~ppc64 ~s390 ~sh ~sparc ~x86 ~x86-fbsd" +IUSE="" + +DEPEND="" +RDEPEND="dev-lang/perl" + +S="${WORKDIR}/console-setup-${PV}" + +src_compile() { + : +} + +src_install() { + dobin Fonts/bdf2psf + + insinto usr/share/bdf2psf + doins -r Fonts/*.equivalents Fonts/*.set Fonts/fontsets + + doman man/bdf2psf.1 + dodoc debian/README.fontsets +} diff --git a/app-text/bdf2psf/metadata.xml b/app-text/bdf2psf/metadata.xml new file mode 100644 index 000000000000..09ddbff14dbf --- /dev/null +++ b/app-text/bdf2psf/metadata.xml @@ -0,0 +1,8 @@ +<?xml version="1.0" encoding="UTF-8"?> +<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd"> +<pkgmetadata> + <maintainer> + <email>floppym@gentoo.org</email> + <name>Mike Gilbert</name> + </maintainer> +</pkgmetadata> diff --git a/app-text/bibclean/Manifest b/app-text/bibclean/Manifest new file mode 100644 index 000000000000..88df903343fa --- /dev/null +++ b/app-text/bibclean/Manifest @@ -0,0 +1 @@ +DIST bibclean-2.11.4.tar.bz2 1244790 SHA256 cb38bcee5db50efe0135dd0499e2adf75574012467c1c6f72a63799198361225 SHA512 e04f785ca017148600984a852e3093b86eb3ca1c67f41427556d2b08e57e11f05502db5a5beb868a33780a12ee06dc7f5eb9cf794c8f7346cfce582e4761ce14 WHIRLPOOL 59fd63259bfbddb855a571777d840a6562ad9d99788a5e60e822cfdd1baafd544991b5aff8da7078e83f8c54d9ff58cb101531600fd36f423c7dbb633d97f1b4 diff --git a/app-text/bibclean/bibclean-2.11.4.ebuild b/app-text/bibclean/bibclean-2.11.4.ebuild new file mode 100644 index 000000000000..4ee2a5f23d54 --- /dev/null +++ b/app-text/bibclean/bibclean-2.11.4.ebuild @@ -0,0 +1,33 @@ +# Copyright 1999-2010 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Id$ + +inherit toolchain-funcs eutils + +DESCRIPTION="BibTeX bibliography prettyprinter and syntax checker" +SRC_URI="http://www.math.utah.edu/pub/bibclean/${P}.tar.bz2" +HOMEPAGE="http://www.math.utah.edu/pub/bibclean/" + +# http://packages.debian.org/changelogs/pool/main/b/bibclean/bibclean_2.11.4-5/bibclean.copyright +LICENSE="GPL-2" +KEYWORDS="~x86 ~amd64" +IUSE="" + +SLOT="0" + +src_unpack() { + unpack ${A} + cd "${S}" + epatch "${FILESDIR}/${P}-ldflags.patch" +} + +src_compile() { + tc-export CC CXX + econf + emake LDFLAGS="${LDFLAGS}" || die "emake failed" +} + +src_install() { + dobin bibclean + newman bibclean.man bibclean.1 +} diff --git a/app-text/bibclean/files/bibclean-2.11.4-ldflags.patch b/app-text/bibclean/files/bibclean-2.11.4-ldflags.patch new file mode 100644 index 000000000000..e93c3be91030 --- /dev/null +++ b/app-text/bibclean/files/bibclean-2.11.4-ldflags.patch @@ -0,0 +1,13 @@ +Index: bibclean-2.11.4/Makefile.in +=================================================================== +--- bibclean-2.11.4.orig/Makefile.in ++++ bibclean-2.11.4/Makefile.in +@@ -343,7 +343,7 @@ BIBCLEAN-OBJS = bibclean.o chek.o do.o + $(LIBOBJS) + + bibclean: $(BIBCLEAN-OBJS) +- $(CC) -o bibclean $(CFLAGS) $(BIBCLEAN-OBJS) $(LIBS) ++ $(CC) $(LDFLAGS) -o bibclean $(CFLAGS) $(BIBCLEAN-OBJS) $(LIBS) + + # This target converts the option descriptions from the manual pages + # to C code for inclusion in bibclean.c. The first awk command diff --git a/app-text/bibclean/metadata.xml b/app-text/bibclean/metadata.xml new file mode 100644 index 000000000000..ba6a8a8800d5 --- /dev/null +++ b/app-text/bibclean/metadata.xml @@ -0,0 +1,5 @@ +<?xml version="1.0" encoding="UTF-8"?> +<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd"> +<pkgmetadata> +<herd>tex</herd> +</pkgmetadata> diff --git a/app-text/bibletime/Manifest b/app-text/bibletime/Manifest new file mode 100644 index 000000000000..aa37b262db44 --- /dev/null +++ b/app-text/bibletime/Manifest @@ -0,0 +1,2 @@ +DIST bibletime-2.10.1.tar.xz 3252680 SHA256 86d2d53913c08bce9f67c0d897639091d84e9d330527636cecd2b9008bf7ca91 SHA512 50f84eb1aefe911f1336ec7a23ea34ade1628383f35dca25330984787221214c0bc0cbc9f88f9540336949df02e76e769b7998d2eef3a15862e3038541564cc9 WHIRLPOOL 2ffc1b1b516d7fa94e842c957dc0be47be5e29ea015fcee2ff291093d0afc201af59d70b055193b420ff3acbc62386980b540eeb63ed92dbd1a741fb68b5be54 +DIST bibletime-2.9.1.tar.bz2 5968979 SHA256 308a86d4a1f63203e01438e75be8306377927498b5d0ae8769a4df3c828013b5 SHA512 6099e48fc3d54cb8362ec1a3965b372e60fd136d036dfd8d94b5e443ee5f27eb092162b653160bfc71d5366f79af35e22ee40d64ecd681f184bc4e90c1cd9e0a WHIRLPOOL 0677646ce099297321c4a519364b41254544f6d8660d72f9e76b6a8eafd08205915f40aef5bbc6463199ca0d272e28b926b13b0637ecdef1bc822256363cecf2 diff --git a/app-text/bibletime/bibletime-2.10.1.ebuild b/app-text/bibletime/bibletime-2.10.1.ebuild new file mode 100644 index 000000000000..3ab39bff1aa5 --- /dev/null +++ b/app-text/bibletime/bibletime-2.10.1.ebuild @@ -0,0 +1,69 @@ +# Copyright 1999-2015 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Id$ + +EAPI=5 +inherit cmake-utils + +DESCRIPTION="Qt Bible study application using the SWORD library" +HOMEPAGE="http://www.bibletime.info/" +SRC_URI="mirror://sourceforge/project/bibletime/BibleTime%202/BibleTime%202%20source%20code/${P}.tar.xz" + +LICENSE="GPL-2" +SLOT="0" +KEYWORDS="~amd64 ~x86" +IUSE="debug qt5" + +# bug 313657 +# RESTRICT="test" + +RDEPEND=" + >=app-text/sword-1.6.0 + >=dev-cpp/clucene-2.3.3.4 + qt5? ( + dev-qt/linguist-tools:5 + dev-qt/qtcore:5 + dev-qt/qtdbus:5 + dev-qt/qtprintsupport:5 + dev-qt/qtwebkit:5 + dev-qt/qtwidgets:5 + ) + !qt5? ( + dev-qt/qtcore:4 + dev-qt/qtdbus:4 + dev-qt/qtgui:4 + dev-qt/qtwebkit:4 + ) +" +DEPEND=" + ${RDEPEND} + dev-libs/boost + dev-libs/icu:= + net-misc/curl + sys-libs/zlib + qt5? ( + dev-qt/qttest:5 + ) + !qt5? ( + dev-qt/qttest:4 + ) +" + +DOCS=( ChangeLog README ) + +src_prepare() { + sed -e "s:Dictionary;Qt:Dictionary;Office;TextTools;Utility;Qt:" \ + -i cmake/platforms/linux/bibletime.desktop.cmake || die "fixing .desktop file failed" + epatch "${FILESDIR}/${PN}-2.10.1-qt5-printsupport.patch" +} + +src_configure() { + local mycmakeargs=( + -DUSE_QT_WEBKIT=ON + ) + if use !qt5; then + mycmakeargs+=(-DBT_FORCE_USE_QT4=) + fi + + cmake-utils_src_configure +} diff --git a/app-text/bibletime/bibletime-2.9.1.ebuild b/app-text/bibletime/bibletime-2.9.1.ebuild new file mode 100644 index 000000000000..a71f27691952 --- /dev/null +++ b/app-text/bibletime/bibletime-2.9.1.ebuild @@ -0,0 +1,48 @@ +# Copyright 1999-2014 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Id$ + +EAPI=5 +inherit cmake-utils + +DESCRIPTION="Qt4 Bible study application using the SWORD library" +HOMEPAGE="http://www.bibletime.info/" +SRC_URI="mirror://sourceforge/project/bibletime/BibleTime%202/BibleTime%202%20source%20code/${P}.tar.bz2" + +LICENSE="GPL-2" +SLOT="0" +KEYWORDS="amd64 ppc x86" +IUSE="debug" + +# bug 313657 +# RESTRICT="test" + +RDEPEND=" + >=app-text/sword-1.6.0 + >=dev-cpp/clucene-2.3.3.4 + dev-qt/qtcore:4 + dev-qt/qtdbus:4 + dev-qt/qtgui:4 + dev-qt/qtwebkit:4" +DEPEND=" + ${RDEPEND} + dev-libs/boost + dev-libs/icu:= + net-misc/curl + sys-libs/zlib + dev-qt/qttest:4" + +DOCS=( ChangeLog README ) + +src_prepare() { + sed -e "s:Dictionary;Qt:Dictionary;Office;TextTools;Utility;Qt;:" \ + -i cmake/platforms/linux/bibletime.desktop.cmake || die "fixing .desktop file failed" +} + +src_configure() { + local mycmakeargs=( + -DUSE_QT_WEBKIT=ON + ) + + cmake-utils_src_configure +} diff --git a/app-text/bibletime/files/bibletime-2.10.1-qt5-printsupport.patch b/app-text/bibletime/files/bibletime-2.10.1-qt5-printsupport.patch new file mode 100644 index 000000000000..203705485409 --- /dev/null +++ b/app-text/bibletime/files/bibletime-2.10.1-qt5-printsupport.patch @@ -0,0 +1,21 @@ +diff -ruN bibletime-2.10.1-orig/CMakeLists.txt bibletime-2.10.1/CMakeLists.txt +--- bibletime-2.10.1-orig/CMakeLists.txt 2014-10-14 21:20:59.068697225 -0400 ++++ bibletime-2.10.1/CMakeLists.txt 2014-10-14 21:23:20.045693427 -0400 +@@ -172,12 +172,14 @@ + ) + + IF(${BIBLETIME_FRONTEND} STREQUAL "MOBILE") +- qt5_use_modules("bibletime" Widgets Qml Quick Network) ++ qt5_use_modules("bibletime" Widgets Qml Quick Network PrintSupport) + ELSE() + IF(BT_Use_DBus) +- qt5_use_modules("bibletime" DBus Widgets WebKit WebKitWidgets Xml Network) ++ qt5_use_modules("bibletime" DBus Widgets WebKit WebKitWidgets Xml ++ Network PrintSupport) + ELSE() +- qt5_use_modules("bibletime" Widgets WebKit WebKitWidgets Xml Network) ++ qt5_use_modules("bibletime" Widgets WebKit WebKitWidgets Xml Network ++ PrintSupport) + ENDIF() + ENDIF() + ELSE() diff --git a/app-text/bibletime/metadata.xml b/app-text/bibletime/metadata.xml new file mode 100644 index 000000000000..9d025d57a4a1 --- /dev/null +++ b/app-text/bibletime/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>theology</herd> + <longdescription> +BibleTime is a Bible study application for Linux. It is based on the +K Desktop Environment and uses the SWORD programming library to work +with Bible texts, commentaries, dictionaries and books provided by +the Crosswire Bible Society. +</longdescription> + <upstream> + <remote-id type="sourceforge">bibletime</remote-id> + </upstream> +</pkgmetadata> diff --git a/app-text/bibus/Manifest b/app-text/bibus/Manifest new file mode 100644 index 000000000000..ad03eda7a867 --- /dev/null +++ b/app-text/bibus/Manifest @@ -0,0 +1,2 @@ +DIST bibus-1.5.1.tar.gz 4989431 SHA256 1e6e6895124d2ab4147be83f2f87d0b1e78b2786f27345b3d1a3976d13d4c70d SHA512 9181dcc332ea139f31c44c10d084581c2d12ce2333c263eede30f2800e155cdaf0d649a6747cf30d7a259ef172d5370a351c5d747200ae7e5dfe88606f95089c WHIRLPOOL 65d9448b6d3e0ec38932b76d3e7c73ef696b9e00733b65810a1d8f789878e4c0a06378dc00b8e1c881c71c64270b44d50b97370129745dcfcf45a1bdc5b1e175 +DIST bibus_1.5.2.orig.tar.gz 5411889 SHA256 c6c66d6bdce403b7791bf58cc16eeaae9f0e9d1c3f0ba8411f9f3e694d740f02 SHA512 33d091dacc707859a11010fcba57691a3e2726ae7579d601720b4398f7be29b580be978da8cd058fab491ec5b52dd3ce33c964a8d5077f8e80d8f0f387ffa2c4 WHIRLPOOL 964f13902a8a20d9e838784cf1f0a032bb2327cd28f3b2470c35a7394ae7f7536a7884d798a8308049a02f6976183ffb1c56cc4d8b20dce13f98033668a90d38 diff --git a/app-text/bibus/bibus-1.5.1.ebuild b/app-text/bibus/bibus-1.5.1.ebuild new file mode 100644 index 000000000000..35f0fd453c01 --- /dev/null +++ b/app-text/bibus/bibus-1.5.1.ebuild @@ -0,0 +1,73 @@ +# Copyright 1999-2015 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Id$ + +EAPI="3" +PYTHON_DEPEND="2" +PYTHON_USE_WITH=sqlite + +inherit multilib eutils python versionator + +DESCRIPTION="Bibliographic and reference management software, integrates with OO.o and MS Word" +HOMEPAGE="http://bibus-biblio.sourceforge.net/" +SRC_URI="mirror://sourceforge/${PN}-biblio/${P}.tar.gz" + +LICENSE="GPL-2" +SLOT="0" +KEYWORDS="amd64 x86" +IUSE="mysql" + +# Most of this mess is designed to give the choice of sqlite or mysql +# but prefer sqlite. We also need to default to sqlite if neither is requested. +# Cannot depend on virtual/ooo +# bibus fails to start with app-office/openoffice-bin (bug #288232). +RDEPEND=" + app-office/libreoffice + =dev-python/wxpython-2.8* + dev-db/sqliteodbc + dev-db/unixODBC + mysql? ( + dev-python/mysql-python + dev-db/myodbc + )" +DEPEND="${RDEPEND}" + +pkg_setup() { + python_set_active_version 2 + python_pkg_setup +} + +src_prepare() { + epatch "${FILESDIR}"/${PN}-1.5.0-install.patch + + sed \ + -e "s:gentoo-python:python$(python_get_version):g" \ + -i Makefile Setup/Makefile Setup/bibus.cfg Setup/bibus.sh \ + || die "Failed to adjust python paths" + + # Disable byte-compilation of Python modules. + sed -e '/\$(compile)/d' -i Makefile || die "sed failed" +} + +src_install() { + emake \ + DESTDIR="${D}" \ + oopath="/usr/$(get_libdir)/openoffice/program" \ + prefix='$(DESTDIR)/usr' \ + sysconfdir='$(DESTDIR)/etc' \ + install || die "emake install failed" + emake \ + DESTDIR="${D}" \ + oopath="/usr/$(get_libdir)/openoffice/program" \ + prefix='$(DESTDIR)/usr' \ + sysconfdir='$(DESTDIR)/etc' \ + install-doc-en || die "emake install failed" +} + +pkg_postinst() { + python_mod_optimize bibus +} + +pkg_postrm() { + python_mod_cleanup bibus +} diff --git a/app-text/bibus/bibus-1.5.2-r1.ebuild b/app-text/bibus/bibus-1.5.2-r1.ebuild new file mode 100644 index 000000000000..1cc6cc272cb7 --- /dev/null +++ b/app-text/bibus/bibus-1.5.2-r1.ebuild @@ -0,0 +1,81 @@ +# Copyright 1999-2015 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Id$ + +EAPI=5 + +PYTHON_COMPAT=( python2_7 ) +PYTHON_REQ_USE="sqlite" + +inherit eutils fdo-mime multilib python-r1 versionator + +DESCRIPTION="Bibliographic and reference management software, integrates with L/OO.o and MS Word" +HOMEPAGE="http://bibus-biblio.sourceforge.net/" +SRC_URI="mirror://sourceforge/${PN}-biblio/${PN}_${PV}.orig.tar.gz" + +LICENSE="GPL-2" +SLOT="0" +KEYWORDS="amd64 ~x86" +IUSE="mysql" + +REQUIRED_USE="${PYTHON_REQUIRED_USE}" + +# Most of this mess is designed to give the choice of sqlite or mysql +# but prefer sqlite. We also need to default to sqlite if neither is requested. +# Cannot depend on virtual/ooo +# bibus fails to start with app-office/openoffice-bin (bug #288232). +RDEPEND=" + ${PYTHON_DEPS} + app-office/libreoffice + dev-python/wxpython:2.8[${PYTHON_USEDEP}] + dev-db/sqliteodbc + dev-db/unixODBC + mysql? ( + dev-python/mysql-python[${PYTHON_USEDEP}] + dev-db/myodbc + )" +DEPEND="${RDEPEND}" + +pkg_setup() { + if [[ -d "/usr/$(get_libdir)/openoffice" ]] ; then + OFFICESUITE="/usr/$(get_libdir)/openoffice" + else + OFFICESUITE="/usr/$(get_libdir)/libreoffice" + fi +} + +src_prepare() { + epatch "${FILESDIR}"/${P}-install.patch +} + +src_compile() { :; } + +src_install() { + einfo "Installing for ${OFFICESUITE}" + installation() { + emake \ + DESTDIR="${D}" \ + prefix="${EPREFIX}/usr" \ + oopath="${OFFICESUITE}/program" \ + ooure="${OFFICESUITE}/ure-link/lib" \ + oobasis="${OFFICESUITE}/program" \ + sysconfdir="${EPREFIX}/etc" \ + pythondir="$(python_get_sitedir)" \ + python=${PYTHON} \ + install install-doc-en + } + python_foreach_impl installation + python_parallel_foreach_impl python_optimize + + python_parallel_foreach_impl python_newscript bibusStart.py ${PN} +} + +pkg_postinst() { + fdo-mime_desktop_database_update + fdo-mime_mime_database_update +} + +pkg_postrm() { + fdo-mime_desktop_database_update + fdo-mime_mime_database_update +} diff --git a/app-text/bibus/bibus-1.5.2.ebuild b/app-text/bibus/bibus-1.5.2.ebuild new file mode 100644 index 000000000000..3c398225eb4d --- /dev/null +++ b/app-text/bibus/bibus-1.5.2.ebuild @@ -0,0 +1,80 @@ +# Copyright 1999-2015 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Id$ + +EAPI=4 + +PYTHON_DEPEND="2" +SUPPORT_PYTHON_ABIS="1" +RESTRICT_PYTHON_ABIS="3.* *-pypy-*" +PYTHON_USE_WITH=sqlite + +inherit eutils fdo-mime multilib python versionator + +DESCRIPTION="Bibliographic and reference management software, integrates with L/OO.o and MS Word" +HOMEPAGE="http://bibus-biblio.sourceforge.net/" +SRC_URI="mirror://sourceforge/${PN}-biblio/${PN}_${PV}.orig.tar.gz" + +LICENSE="GPL-2" +SLOT="0" +KEYWORDS="~amd64 ~x86" +IUSE="mysql" + +# Most of this mess is designed to give the choice of sqlite or mysql +# but prefer sqlite. We also need to default to sqlite if neither is requested. +# Cannot depend on virtual/ooo +# bibus fails to start with app-office/openoffice-bin (bug #288232). +RDEPEND=" + app-office/libreoffice + =dev-python/wxpython-2.8* + dev-db/sqliteodbc + dev-db/unixODBC + mysql? ( + dev-python/mysql-python + dev-db/myodbc + )" +DEPEND="${RDEPEND}" + +pkg_setup() { + python_pkg_setup + if [[ -d "/usr/$(get_libdir)/openoffice" ]] ; then + OFFICESUITE="/usr/$(get_libdir)/openoffice" + else + OFFICESUITE="/usr/$(get_libdir)/libreoffice" + fi +} + +src_prepare() { + epatch "${FILESDIR}"/${P}-install.patch +} + +src_compile() { :; } + +src_install() { + einfo "Installing for ${OFFICESUITE}" + installation() { + emake \ + DESTDIR="${D}" \ + prefix="${EPREFIX}/usr" \ + oopath="${OFFICESUITE}/program" \ + ooure="${OFFICESUITE}/ure-link/lib" \ + oobasis="${OFFICESUITE}/program" \ + sysconfdir="${EPREFIX}/etc" \ + pythondir="$(python_get_sitedir)" \ + python=$(PYTHON -a) \ + install install-doc-en + } + python_execute_function installation +} + +pkg_postinst() { + python_mod_optimize bibus + fdo-mime_desktop_database_update + fdo-mime_mime_database_update +} + +pkg_postrm() { + python_mod_cleanup bibus + fdo-mime_desktop_database_update + fdo-mime_mime_database_update +} diff --git a/app-text/bibus/files/bibus-1.5.0-install.patch b/app-text/bibus/files/bibus-1.5.0-install.patch new file mode 100644 index 000000000000..3b2b438d4739 --- /dev/null +++ b/app-text/bibus/files/bibus-1.5.0-install.patch @@ -0,0 +1,262 @@ +diff -Naur bibus-1.5.0/Makefile bibus-1.5.0.new/Makefile +--- bibus-1.5.0/Makefile 2009-10-08 16:53:13.000000000 -0400 ++++ bibus-1.5.0.new/Makefile 2009-11-05 23:33:57.000000000 -0500 +@@ -1,24 +1,25 @@ + # you presumably will only have to change the three first lines below +-DESTDIR = /usr/local ++DESTDIR = ${D}usr + python = /usr/bin/python + oopath = /usr/lib/openoffice/program +-ooure = /usr/lib/openoffice.org/basis-link/ure-link/lib ++ooure = /usr/lib/openoffice/basis-link/ure-link/lib + oobasis = /usr/lib/openoffice/basis-link/program + # + prefix = $(DESTDIR) + exec_prefix = $(prefix) + bindir = $(exec_prefix)/bin + datadir = $(prefix)/share +-sysconfdir = /etc ++pythondir = $(prefix)/lib/gentoo-python/site-packages ++sysconfdir = ${D}etc + mandir = $(prefix)/share/man + man1dir = $(mandir)/man1 + + define install-files +- install -d $(datadir)/bibus +- install -m644 *.py MySQL_Bibus.ini $(datadir)/bibus/ ++ install -d $(pythondir)/bibus ++ install -m644 *.py MySQL_Bibus.ini $(pythondir)/bibus/ + # + for dir in Export Format Import StyleEditor FirstStart bibOOo db_models Pixmaps Data LyX Utilities; do \ +- find $$dir ! -wholename '*CVS*' -a -type f -exec install -m644 '{}' -D $(datadir)/bibus/'{}' ';' ; \ ++ find $$dir ! -wholename '*CVS*' -a -type f -exec install -m644 '{}' -D $(pythondir)/bibus/'{}' ';' ; \ + done + install -m644 Setup/UnoConnectionListener.odg -D $(datadir)/bibus/Setup/UnoConnectionListener.odg + # locale files. We look for all the directory in locale/ +@@ -35,41 +36,38 @@ + # freedesktop icon and shortcut + install -m644 Pixmaps/bibus.png -D $(datadir)/icons/hicolor/48x48/apps/bibus.png + install -m644 Setup/bibus.desktop -D $(datadir)/applications/bibus.desktop +- # The following lines are presumably not needed since icons/desktop are in standard locations +- #echo 'Exec=$(bindir)/bibus' >> $(datadir)/applications/bibus.desktop +- #echo 'Icon=$(datadir)/icons/hicolor/48x48/apps/bibus.png' >> $(datadir)/applications/bibus.desktop + + # bibus command + install -d $(bindir) +- ln -sf $(datadir)/bibus/bibusStart.py $(bindir)/bibus +- chmod 755 $(datadir)/bibus/bibusStart.py ++ ln -sf $(pythondir)/bibus/bibusStart.py $(bindir)/bibus ++ chmod 755 $(pythondir)/bibus/bibusStart.py + + # basic doc files +- install -m755 -d $(datadir)/doc/bibus +- install -m644 Docs/*.txt Docs/CHANGELOG Docs/copying $(datadir)/doc/bibus ++ install -m755 -d $(datadir)/doc/${PF} ++ install -m644 Docs/*.txt Docs/CHANGELOG Docs/copying $(datadir)/doc/${PF} + + # generating bibus.cfg file +- echo '[PATH]' > $(datadir)/bibus/bibus.cfg +- echo 'python = $(python)' >> $(datadir)/bibus/bibus.cfg +- echo 'oopath = $(oopath)' >> $(datadir)/bibus/bibus.cfg +- echo 'ooure = $(ooure)' >> $(datadir)/bibus/bibus.cfg +- echo 'oobasis = $(oobasis)' >> $(datadir)/bibus/bibus.cfg +- echo 'docdir = $(datadir)/doc/bibus/html' >> $(datadir)/bibus/bibus.cfg +- echo 'licence = $(datadir)/doc/bibus/copying' >> $(datadir)/bibus/bibus.cfg +- echo 'localedir = $(datadir)/locale' >> $(datadir)/bibus/bibus.cfg +- echo 'systemconf = $(sysconfdir)/bibus.config' >> $(datadir)/bibus/bibus.cfg ++ echo '[PATH]' > $(pythondir)/bibus/bibus.cfg ++ echo 'python = $(python)' >> $(pythondir)/bibus/bibus.cfg ++ echo 'oopath = $(oopath)' >> $(pythondir)/bibus/bibus.cfg ++ echo 'ooure = $(ooure)' >> $(pythondir)/bibus/bibus.cfg ++ echo 'oobasis = $(oobasis)' >> $(pythondir)/bibus/bibus.cfg ++ echo 'docdir = /usr/share/doc/${PF}/html' >> $(pythondir)/bibus/bibus.cfg ++ echo 'licence = /usr/share/doc/${PF}/copying' >> $(pythondir)/bibus/bibus.cfg ++ echo 'localedir = /usr/share/locale' >> $(pythondir)/bibus/bibus.cfg ++ echo 'systemconf = /etc/bibus.config' >> $(pythondir)/bibus/bibus.cfg + endef + + define install-doc-en + # copying docs in from Docs/html/en/ for bibus-doc-en + cd Docs;\ +- find html/en/* -type f -exec install -m644 '{}' -D $(datadir)/doc/bibus/'{}' ';' ++ find html/en/* -type f -exec install -m644 '{}' -D $(datadir)/doc/${PF}/'{}' ';' + endef + + define compile +- # compile recursively all the python files located in $(datadir)/bibus +- $(python) -c "import compileall ; compileall.compile_dir('$(datadir)/bibus')" +- $(python) -O -c "import compileall ; compileall.compile_dir('$(datadir)/bibus')" ++ # compile recursively all the python files located in $(pythondir)/bibus ++ $(python) -c "import compileall ; compileall.compile_dir('$(pythondir)/bibus')" ++ $(python) -O -c "import compileall ; compileall.compile_dir('$(pythondir)/bibus')" + endef + + install-files: +@@ -85,13 +83,15 @@ + + # write uninstaller in $(datadir)/bibus/Setup/uninstall.sh + echo "#!/bin/sh" > $(datadir)/bibus/Setup/uninstall.sh +- echo "rm -rf $(datadir)/bibus" >> $(datadir)/bibus/Setup/uninstall.sh +- echo "rm $(bindir)/bibus" >> $(datadir)/bibus/Setup/uninstall.sh +- echo "find $(datadir)/locale -name bibus.mo -exec rm -f {} \;" >> $(datadir)/bibus/Setup/uninstall.sh +- echo "rm $(sysconfdir)/bibus.config" >> $(datadir)/bibus/Setup/uninstall.sh +- echo "rm $(man1dir)/bibus.1" >> $(datadir)/bibus/Setup/uninstall.sh +- echo "rm -rf $(datadir)/doc/bibus" >> $(datadir)/bibus/Setup/uninstall.sh +- echo "rm $(datadir)/applications/bibus.desktop" >> $(datadir)/bibus/Setup/uninstall.sh +- echo "rm $(datadir)/icons/hicolor/48x48/apps/bibus.png" >> $(datadir)/bibus/Setup/uninstall.sh ++ echo "rm -rf /usr/share/bibus" >> $(datadir)/bibus/Setup/uninstall.sh ++ echo "rm /usr/share/bibus" >> $(datadir)/bibus/Setup/uninstall.sh ++ echo "rm -rf /usr/lib/gentoo-python/site-packages/bibus" >> $(datadir)/bibus/Setup/uninstall.sh ++ echo "rm /usr/lib/gentoo-python/site-packages/bibus" >> $(datadir)/bibus/Setup/uninstall.sh ++ echo "find /usr/share/locale -name bibus.mo -exec rm -f {} \;" >> $(datadir)/bibus/Setup/uninstall.sh ++ echo "rm /etc/bibus.config" >> $(datadir)/bibus/Setup/uninstall.sh ++ echo "rm /usr/share/man/man1/bibus.1" >> $(datadir)/bibus/Setup/uninstall.sh ++ echo "rm -rf /usr/share/doc/${PF}" >> $(datadir)/bibus/Setup/uninstall.sh ++ echo "rm /usr/share/applications/bibus.desktop" >> $(datadir)/bibus/Setup/uninstall.sh ++ echo "rm /usr/share/icons/hicolor/48x48/apps/bibus.png" >> $(datadir)/bibus/Setup/uninstall.sh + chmod 744 $(datadir)/bibus/Setup/uninstall.sh + # end uninstaller +diff -Naur bibus-1.5.0/Setup/Makefile bibus-1.5.0.new/Setup/Makefile +--- bibus-1.5.0/Setup/Makefile 2009-10-08 16:53:13.000000000 -0400 ++++ bibus-1.5.0.new/Setup/Makefile 2009-11-05 22:25:14.000000000 -0500 +@@ -1,24 +1,25 @@ + # you presumably will only have to change the three first lines below +-DESTDIR = /usr/local ++DESTDIR = ${D}/usr + python = /usr/bin/python + oopath = /usr/lib/openoffice/program +-ooure = /usr/lib/openoffice.org/basis-link/ure-link/lib ++ooure = /usr/lib/openoffice/basis-link/ure-link/lib + oobasis = /usr/lib/openoffice/basis-link/program + # + prefix = $(DESTDIR) + exec_prefix = $(prefix) + bindir = $(exec_prefix)/bin + datadir = $(prefix)/share +-sysconfdir = /etc ++pythondir = $(prefix)/lib/gentoo-python/site-packages ++sysconfdir = ${D}etc + mandir = $(prefix)/share/man + man1dir = $(mandir)/man1 + + define install-files +- install -d $(datadir)/bibus +- install -m644 *.py MySQL_Bibus.ini $(datadir)/bibus/ ++ install -d $(pythondir)/bibus ++ install -m644 *.py MySQL_Bibus.ini $(pythondir)/bibus/ + # + for dir in Export Format Import StyleEditor FirstStart bibOOo db_models Pixmaps Data LyX Utilities; do \ +- find $$dir ! -wholename '*CVS*' -a -type f -exec install -m644 '{}' -D $(datadir)/bibus/'{}' ';' ; \ ++ find $$dir ! -wholename '*CVS*' -a -type f -exec install -m644 '{}' -D $(pythondir)/bibus/'{}' ';' ; \ + done + install -m644 Setup/UnoConnectionListener.odg -D $(datadir)/bibus/Setup/UnoConnectionListener.odg + # locale files. We look for all the directory in locale/ +@@ -35,41 +36,38 @@ + # freedesktop icon and shortcut + install -m644 Pixmaps/bibus.png -D $(datadir)/icons/hicolor/48x48/apps/bibus.png + install -m644 Setup/bibus.desktop -D $(datadir)/applications/bibus.desktop +- # The following lines are presumably not needed since icons/desktop are in standard locations +- #echo 'Exec=$(bindir)/bibus' >> $(datadir)/applications/bibus.desktop +- #echo 'Icon=$(datadir)/icons/hicolor/48x48/apps/bibus.png' >> $(datadir)/applications/bibus.desktop +- ++ + # bibus command + install -d $(bindir) +- ln -sf $(datadir)/bibus/bibusStart.py $(bindir)/bibus +- chmod 755 $(datadir)/bibus/bibusStart.py ++ ln -sf $(pythondir)/bibus/bibusStart.py $(bindir)/bibus ++ chmod 755 $(pythondir)/bibus/bibusStart.py + + # basic doc files +- install -m755 -d $(datadir)/doc/bibus +- install -m644 Docs/*.txt Docs/CHANGELOG Docs/copying $(datadir)/doc/bibus ++ install -m755 -d $(datadir)/doc/${PF} ++ install -m644 Docs/*.txt Docs/CHANGELOG Docs/copying $(datadir)/doc/${PF} + + # generating bibus.cfg file +- echo '[PATH]' > $(datadir)/bibus/bibus.cfg +- echo 'python = $(python)' >> $(datadir)/bibus/bibus.cfg +- echo 'oopath = $(oopath)' >> $(datadir)/bibus/bibus.cfg +- echo 'ooure = $(ooure)' >> $(datadir)/bibus/bibus.cfg +- echo 'oobasis = $(oobasis)' >> $(datadir)/bibus/bibus.cfg +- echo 'docdir = $(datadir)/doc/bibus/html' >> $(datadir)/bibus/bibus.cfg +- echo 'licence = $(datadir)/doc/bibus/copying' >> $(datadir)/bibus/bibus.cfg +- echo 'localedir = $(datadir)/locale' >> $(datadir)/bibus/bibus.cfg +- echo 'systemconf = $(sysconfdir)/bibus.config' >> $(datadir)/bibus/bibus.cfg ++ echo '[PATH]' > $(pythondir)/bibus/bibus.cfg ++ echo 'python = $(python)' >> $(pythondir)/bibus/bibus.cfg ++ echo 'oopath = $(oopath)' >> $(pythondir)/bibus/bibus.cfg ++ echo 'ooure = $(ooure)' >> $(pythondir)/bibus/bibus.cfg ++ echo 'oobasis = $(oobasis)' >> $(pythondir)/bibus/bibus.cfg ++ echo 'docdir = /usr/share/doc/${PF}/html' >> $(pythondir)/bibus/bibus.cfg ++ echo 'licence = /usr/share/doc/${PF}/copying' >> $(pythondir)/bibus/bibus.cfg ++ echo 'localedir = /usr/share/locale' >> $(pythondir)/bibus/bibus.cfg ++ echo 'systemconf = /etc/bibus.config' >> $(pythondir)/bibus/bibus.cfg + endef + + define install-doc-en + # copying docs in from Docs/html/en/ for bibus-doc-en + cd Docs;\ +- find html/en/* -type f -exec install -m644 '{}' -D $(datadir)/doc/bibus/'{}' ';' ++ find html/en/* -type f -exec install -m644 '{}' -D $(datadir)/doc/${PF}/'{}' ';' + endef + + define compile + # compile recursively all the python files located in $(datadir)/bibus +- $(python) -c "import compileall ; compileall.compile_dir('$(datadir)/bibus')" +- $(python) -O -c "import compileall ; compileall.compile_dir('$(datadir)/bibus')" ++ $(python) -c "import compileall ; compileall.compile_dir('$(pythondir)/bibus')" ++ $(python) -O -c "import compileall ; compileall.compile_dir('$(pythondir)/bibus')" + endef + + install-files: +@@ -85,13 +83,15 @@ + + # write uninstaller in $(datadir)/bibus/Setup/uninstall.sh + echo "#!/bin/sh" > $(datadir)/bibus/Setup/uninstall.sh +- echo "rm -rf $(datadir)/bibus" >> $(datadir)/bibus/Setup/uninstall.sh +- echo "rm $(bindir)/bibus" >> $(datadir)/bibus/Setup/uninstall.sh +- echo "find $(datadir)/locale -name bibus.mo -exec rm -f {} \;" >> $(datadir)/bibus/Setup/uninstall.sh +- echo "rm $(sysconfdir)/bibus.config" >> $(datadir)/bibus/Setup/uninstall.sh +- echo "rm $(man1dir)/bibus.1" >> $(datadir)/bibus/Setup/uninstall.sh +- echo "rm -rf $(datadir)/doc/bibus" >> $(datadir)/bibus/Setup/uninstall.sh +- echo "rm $(datadir)/applications/bibus.desktop" >> $(datadir)/bibus/Setup/uninstall.sh +- echo "rm $(datadir)/icons/hicolor/48x48/apps/bibus.png" >> $(datadir)/bibus/Setup/uninstall.sh ++ echo "rm -rf /usr/share/bibus" >> $(datadir)/bibus/Setup/uninstall.sh ++ echo "rm /usr/share/bibus" >> $(datadir)/bibus/Setup/uninstall.sh ++ echo "rm -rf /usr/lib/gentoo-python/site-packages/bibus" >> $(datadir)/bibus/Setup/uninstall.sh ++ echo "rm /usr/lib/gentoo-python/site-packages/bibus" >> $(datadir)/bibus/Setup/uninstall.sh ++ echo "find /usr/share/locale -name bibus.mo -exec rm -f {} \;" >> $(datadir)/bibus/Setup/uninstall.sh ++ echo "rm /etc/bibus.config" >> $(datadir)/bibus/Setup/uninstall.sh ++ echo "rm /usr/share/man/man1/bibus.1" >> $(datadir)/bibus/Setup/uninstall.sh ++ echo "rm -rf /usr/share/doc/${PF}" >> $(datadir)/bibus/Setup/uninstall.sh ++ echo "rm /usr/share/applications/bibus.desktop" >> $(datadir)/bibus/Setup/uninstall.sh ++ echo "rm /usr/share/icons/hicolor/48x48/apps/bibus.png" >> $(datadir)/bibus/Setup/uninstall.sh + chmod 744 $(datadir)/bibus/Setup/uninstall.sh + # end uninstaller +diff -Naur bibus-1.5.0/Setup/bibus.cfg bibus-1.5.0.new/Setup/bibus.cfg +--- bibus-1.5.0/Setup/bibus.cfg 2009-10-08 16:53:13.000000000 -0400 ++++ bibus-1.5.0.new/Setup/bibus.cfg 2009-11-05 22:14:50.000000000 -0500 +@@ -1,7 +1,7 @@ + [PATH] + python = /usr/bin/python + oopath = /usr/lib/openoffice/program +-docdir = /usr/local/share/doc/bibus/html +-licence = /usr/local/share/doc/bibus/copying +-localedir = /usr/local/share/locale +-systemconf = /usr/local/etc/bibus.config ++docdir = /usr/share/doc/bibus-1.4.3.2-r1/html ++licence = /usr/share/doc/bibus-1.4.3.2-r1/copying ++localedir = /usr/share/locale ++systemconf = /etc/bibus.config +diff -Naur bibus-1.5.0/Setup/bibus.sh bibus-1.5.0.new/Setup/bibus.sh +--- bibus-1.5.0/Setup/bibus.sh 2009-10-08 16:53:13.000000000 -0400 ++++ bibus-1.5.0.new/Setup/bibus.sh 2009-11-05 22:14:50.000000000 -0500 +@@ -1,4 +1,4 @@ + #!/bin/sh +-export LD_LIBRARY_PATH=/usr/lib/openoffice/program +-export PYTHONPATH=/usr/lib/openoffice/program +-exec /usr/bin/python /usr/local/share/bibus/bibus.py ++export LD_LIBRARY_PATH=/usr/lib/openoffice/program:/usr/lib/openoffice/basis-link/program:/usr/lib/openoffice/basis-link/ure-link/lib ++export PYTHONPATH=/usr/lib/openoffice/program:/usr/lib/openoffice/basis-link/program:/usr/lib/openoffice/basis-link/ure-link/lib ++exec /usr/bin/python /usr/lib/gentoo-python/site-packages/bibus/bibus.py diff --git a/app-text/bibus/files/bibus-1.5.2-install.patch b/app-text/bibus/files/bibus-1.5.2-install.patch new file mode 100644 index 000000000000..5225fcd6c3d8 --- /dev/null +++ b/app-text/bibus/files/bibus-1.5.2-install.patch @@ -0,0 +1,110 @@ + Makefile | 62 ++++++++++++++++++++++++-------------------------------------- + 1 files changed, 24 insertions(+), 38 deletions(-) + +diff --git a/Makefile b/Makefile +index d41b12d..b07cdff 100755 +--- a/Makefile ++++ b/Makefile +@@ -14,62 +14,60 @@ mandir = $(prefix)/share/man + man1dir = $(mandir)/man1 + + define install-files +- install -d $(datadir)/bibus +- install -m644 *.py MySQL_Bibus.ini $(datadir)/bibus/ ++ install -d $(DESTDIR)$(pythondir)/bibus ++ install -m644 *.py MySQL_Bibus.ini $(DESTDIR)/$(pythondir)/bibus/ + # + for dir in Export Format Import StyleEditor FirstStart bibOOo db_models Pixmaps Data LyX Utilities; do \ +- find $$dir ! -wholename '*CVS*' -a -type f -exec install -m644 '{}' -D $(datadir)/bibus/'{}' ';' ; \ ++ find $$dir ! -wholename '*CVS*' -a -type f -exec install -m644 '{}' -D $(DESTDIR)/$(pythondir)/bibus/'{}' ';' ; \ + done +- install -m644 Setup/UnoConnectionListener.odg -D $(datadir)/bibus/Setup/UnoConnectionListener.odg ++ install -m644 Setup/UnoConnectionListener.odg -D $(DESTDIR)/$(datadir)/bibus/Setup/UnoConnectionListener.odg + # locale files. We look for all the directory in locale/ + for dir in $(wildcard locale/*); do \ + if [ -d $$dir ] && [ $$dir != "locale/CVS" ]; then \ +- install -m644 $$dir/LC_MESSAGES/bibus.mo -D $(datadir)/$$dir/LC_MESSAGES/bibus.mo ; \ ++ install -m644 $$dir/LC_MESSAGES/bibus.mo -D $(DESTDIR)/$(datadir)/$$dir/LC_MESSAGES/bibus.mo ; \ + fi; \ + done + # bibus.config in /etc +- install -m644 bibus.config -D $(sysconfdir)/bibus.config ++ install -m644 bibus.config -D $(DESTDIR)/$(sysconfdir)/bibus.config + # man page +- install -m644 Setup/bibus.1 -D $(man1dir)/bibus.1 ++ install -m644 Setup/bibus.1 -D $(DESTDIR)/$(man1dir)/bibus.1 + + # freedesktop icon and shortcut +- install -m644 Pixmaps/bibus.png -D $(datadir)/icons/hicolor/48x48/apps/bibus.png +- install -m644 Setup/bibus.desktop -D $(datadir)/applications/bibus.desktop ++ install -m644 Pixmaps/bibus.png -D $(DESTDIR)$(datadir)/pixmaps/bibus.png ++ install -m644 Setup/bibus.desktop -D $(DESTDIR)/$(datadir)/applications/bibus.desktop + # The following lines are presumably not needed since icons/desktop are in standard locations + #echo 'Exec=$(bindir)/bibus' >> $(datadir)/applications/bibus.desktop + #echo 'Icon=$(datadir)/icons/hicolor/48x48/apps/bibus.png' >> $(datadir)/applications/bibus.desktop + + # bibus command +- install -d $(bindir) +- ln -sf $(datadir)/bibus/bibusStart.py $(bindir)/bibus +- chmod 755 $(datadir)/bibus/bibusStart.py ++ install -d $(DESTDIR)/$(bindir) ++ ln -sf $(pythondir)/bibus/bibusStart.py $(DESTDIR)/$(bindir)/bibus ++ chmod 755 $(DESTDIR)$(pythondir)/bibus/bibusStart.py + + # basic doc files +- install -m755 -d $(datadir)/doc/bibus +- install -m644 Docs/*.txt Docs/CHANGELOG Docs/copying $(datadir)/doc/bibus ++ install -m755 -d $(DESTDIR)/$(datadir)/doc/${PF} ++ install -m644 Docs/*.txt Docs/CHANGELOG Docs/copying $(DESTDIR)/$(datadir)/doc/${PF} + + # generating bibus.cfg file +- echo '[PATH]' > $(datadir)/bibus/bibus.cfg +- echo 'python = $(python)' >> $(datadir)/bibus/bibus.cfg +- echo 'oopath = $(oopath)' >> $(datadir)/bibus/bibus.cfg +- echo 'ooure = $(ooure)' >> $(datadir)/bibus/bibus.cfg +- echo 'oobasis = $(oobasis)' >> $(datadir)/bibus/bibus.cfg +- echo 'docdir = $(datadir)/doc/bibus/html' >> $(datadir)/bibus/bibus.cfg +- echo 'licence = $(datadir)/doc/bibus/copying' >> $(datadir)/bibus/bibus.cfg +- echo 'localedir = $(datadir)/locale' >> $(datadir)/bibus/bibus.cfg +- echo 'systemconf = $(sysconfdir)/bibus.config' >> $(datadir)/bibus/bibus.cfg ++ echo '[PATH]' > $(DESTDIR)/$(pythondir)/bibus/bibus.cfg ++ echo 'python = $(python)' >> $(DESTDIR)/$(pythondir)/bibus/bibus.cfg ++ echo 'oopath = $(oopath)' >> $(DESTDIR)/$(pythondir)/bibus/bibus.cfg ++ echo 'ooure = $(ooure)' >> $(DESTDIR)/$(pythondir)/bibus/bibus.cfg ++ echo 'oobasis = $(oobasis)' >> $(DESTDIR)/$(pythondir)/bibus/bibus.cfg ++ echo 'docdir = $(datadir)/doc/${PF}/html' >> $(DESTDIR)/$(pythondir)/bibus/bibus.cfg ++ echo 'localedir = $(datadir)/locale' >> $(DESTDIR)/$(pythondir)/bibus/bibus.cfg ++ echo 'systemconf = $(sysconfdir)/bibus.config' >> $(DESTDIR)/$(pythondir)/bibus/bibus.cfg + endef + + define install-doc-en + # copying docs in from Docs/html/en/ for bibus-doc-en + cd Docs;\ +- find html/en/* -type f -exec install -m644 '{}' -D $(datadir)/doc/bibus/'{}' ';' ++ find html/en/* -type f -exec install -m644 '{}' -D $(DESTDIR)/$(datadir)/doc/${PF}/'{}' ';' + endef + + define compile + # compile recursively all the python files located in $(datadir)/bibus +- $(python) -c "import compileall ; compileall.compile_dir('$(datadir)/bibus')" +- $(python) -O -c "import compileall ; compileall.compile_dir('$(datadir)/bibus')" ++ echo "No compilation" + endef + + install-files: +@@ -83,15 +81,3 @@ install: + $(install-doc-en) + $(compile) + +- # write uninstaller in $(datadir)/bibus/Setup/uninstall.sh +- echo "#!/bin/sh" > $(datadir)/bibus/Setup/uninstall.sh +- echo "rm -rf $(datadir)/bibus" >> $(datadir)/bibus/Setup/uninstall.sh +- echo "rm $(bindir)/bibus" >> $(datadir)/bibus/Setup/uninstall.sh +- echo "find $(datadir)/locale -name bibus.mo -exec rm -f {} \;" >> $(datadir)/bibus/Setup/uninstall.sh +- echo "rm $(sysconfdir)/bibus.config" >> $(datadir)/bibus/Setup/uninstall.sh +- echo "rm $(man1dir)/bibus.1" >> $(datadir)/bibus/Setup/uninstall.sh +- echo "rm -rf $(datadir)/doc/bibus" >> $(datadir)/bibus/Setup/uninstall.sh +- echo "rm $(datadir)/applications/bibus.desktop" >> $(datadir)/bibus/Setup/uninstall.sh +- echo "rm $(datadir)/icons/hicolor/48x48/apps/bibus.png" >> $(datadir)/bibus/Setup/uninstall.sh +- chmod 744 $(datadir)/bibus/Setup/uninstall.sh +- # end uninstaller diff --git a/app-text/bibus/metadata.xml b/app-text/bibus/metadata.xml new file mode 100644 index 000000000000..3786591536b4 --- /dev/null +++ b/app-text/bibus/metadata.xml @@ -0,0 +1,8 @@ +<?xml version="1.0" encoding="UTF-8"?> +<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd"> +<pkgmetadata> + <herd>sci</herd> + <upstream> + <remote-id type="sourceforge">bibus-biblio</remote-id> + </upstream> +</pkgmetadata> diff --git a/app-text/bibutils/Manifest b/app-text/bibutils/Manifest new file mode 100644 index 000000000000..5b9a58f707af --- /dev/null +++ b/app-text/bibutils/Manifest @@ -0,0 +1 @@ +DIST bibutils_4.12_src.tgz 447566 SHA256 2f98217a442db8d5532263893aab338535cf17053b79cc8bf82287c6af2060d5 SHA512 04329ecb685bf4d5314c6d3a2d5bb21e67112d73bcb49f5a7808a4082f32a9aecb40add4ec4b5320be35f49cd8e101dc1e35409e7c6cad8c39238d2122f91dd0 WHIRLPOOL c36fd9cba003ef7fcec7c9a004eac7c15eef663f3bebb2bad2483462677b0da893f4670e8fd6ec8a1476278c050d4a17517c4b27221a09a388dd7c4293452c8a diff --git a/app-text/bibutils/bibutils-4.12.ebuild b/app-text/bibutils/bibutils-4.12.ebuild new file mode 100644 index 000000000000..2ab6fd8125ec --- /dev/null +++ b/app-text/bibutils/bibutils-4.12.ebuild @@ -0,0 +1,38 @@ +# Copyright 1999-2011 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Id$ + +EAPI=2 +inherit toolchain-funcs + +MY_P="${PN}_${PV}" +DESCRIPTION="Interconverts between various bibliography formats using a common XML intermediate" +HOMEPAGE="http://www.scripps.edu/~cdputnam/software/bibutils/" +SRC_URI="http://www.scripps.edu/~cdputnam/software/bibutils/${MY_P}_src.tgz" + +LICENSE="GPL-2" +SLOT="0" +KEYWORDS="~amd64 ~ppc ~x86" +IUSE="" + +S=${WORKDIR}/${MY_P} + +src_prepare() { + # The custom configure script sucks, so we'll just do its + # job ourselves + rm -f Makefile configure || die "Failed to purge old Makefile" + sed \ + -e "s:REPLACE_CC:CC=\"$(tc-getCC) ${CFLAGS}\":g" \ + -e "s:REPLACE_RANLIB:RANLIB=\"$(tc-getRANLIB)\":g" \ + -e "s:REPLACE_INSTALLDIR:\"${D}/usr/bin\":g" \ + -e 's:REPLACE_POSTFIX::g' \ + -e 's:make:$(MAKE):g' \ + Makefile_start > Makefile \ + || die "Failed to set up Makefile" +} + +src_install() { + dodir /usr/bin + emake install || die + dodoc ChangeLog || die +} diff --git a/app-text/bibutils/metadata.xml b/app-text/bibutils/metadata.xml new file mode 100644 index 000000000000..b229aec85b8f --- /dev/null +++ b/app-text/bibutils/metadata.xml @@ -0,0 +1,5 @@ +<?xml version="1.0" encoding="UTF-8"?> +<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd"> +<pkgmetadata> +<herd>sci</herd> +</pkgmetadata> diff --git a/app-text/binfind/Manifest b/app-text/binfind/Manifest new file mode 100644 index 000000000000..41c6d5e15400 --- /dev/null +++ b/app-text/binfind/Manifest @@ -0,0 +1 @@ +DIST binfind-0.0.3.tar.gz 91222 SHA256 1db422fd185d0cdc9915415279952eceef9f426195081b970366a2f0f4dafd78 SHA512 b3a8b72669f701ce54fb3d1c2331262cfc7f396239d14741d3a106c999ef58739a7f33de87da427983ffb641baa7fae4857aa6aab2e1c0748a61d8b913dca3f1 WHIRLPOOL c920a79989db1097f5cf1a4c00001fbc2321cd8ee506abfb4092fcfcdaaed31ad74d6b6e328a4aeba12a30625bcc27b2c62a3b2a25b0a6f9568671c6f6611520 diff --git a/app-text/binfind/binfind-0.0.3.ebuild b/app-text/binfind/binfind-0.0.3.ebuild new file mode 100644 index 000000000000..f013b1d07087 --- /dev/null +++ b/app-text/binfind/binfind-0.0.3.ebuild @@ -0,0 +1,18 @@ +# Copyright 1999-2014 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Id$ + +DESCRIPTION="binfind searches files for a byte sequence specified on the command line" +HOMEPAGE="http://www.lith.at/binfind" +SRC_URI="http://www.lith.at/binfind/${P}.tar.gz" +LICENSE="GPL-2" +SLOT="0" +KEYWORDS="~x86 ~amd64" +IUSE="" +DEPEND="" +RDEPEND="" + +src_install() { + emake DESTDIR="${D}" install + dodoc AUTHORS NEWS README ChangeLog +} diff --git a/app-text/binfind/metadata.xml b/app-text/binfind/metadata.xml new file mode 100644 index 000000000000..c6d862855eb5 --- /dev/null +++ b/app-text/binfind/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>robbat2@gentoo.org</email> +</maintainer> +</pkgmetadata> diff --git a/app-text/blahtexml/Manifest b/app-text/blahtexml/Manifest new file mode 100644 index 000000000000..c4624da77536 --- /dev/null +++ b/app-text/blahtexml/Manifest @@ -0,0 +1 @@ +DIST blahtexml-0.9-src.tar.gz 168564 SHA256 c5145b02bdf03cd95b7b136de63286819e696639824961d7408bec4591bc3737 SHA512 5a5ddd50c0b3a25954135c44de0ac3a3d992e3e9dd691a552512415c385a39011595683877cdf98aee77d6ef2f9dae750214798ec2af69b8de089d0aec64b042 WHIRLPOOL 10aed077f16914f2ceff02929069c305a1b6a154e0aafea1c25048b9394c2fddb76cd852c83a1025464e89ecaf7d68d0f552e47818696a0343518fea8deb2852 diff --git a/app-text/blahtexml/blahtexml-0.9.ebuild b/app-text/blahtexml/blahtexml-0.9.ebuild new file mode 100644 index 000000000000..451353f65328 --- /dev/null +++ b/app-text/blahtexml/blahtexml-0.9.ebuild @@ -0,0 +1,40 @@ +# Copyright 1999-2015 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Id$ + +EAPI=5 + +inherit eutils toolchain-funcs + +DESCRIPTION="TeX-to-MathML converter" +HOMEPAGE="http://gva.noekeon.org/blahtexml" +SRC_URI="http://gva.noekeon.org/${PN}/${P}-src.tar.gz" + +LICENSE="BSD CC-BY-3.0 ZLIB" +SLOT="0" +KEYWORDS="amd64 ~arm ~ppc ~ppc64 x86" +IUSE="doc" + +RDEPEND="dev-libs/xerces-c" +DEPEND="${RDEPEND} + virtual/pkgconfig + doc? ( + app-text/texlive-core + dev-libs/libxslt + dev-tex/latex2html )" + +src_prepare() { + tc-export CC CXX + epatch "${FILESDIR}"/${P}-{Makefile,gcc-4.7}.patch +} + +src_compile() { + emake blahtex{,ml}-linux + use doc && emake doc +} + +src_install() { + dobin blahtex ${PN} + doman "${FILESDIR}"/${PN}.1 + use doc && dodoc Documentation/manual.pdf +} diff --git a/app-text/blahtexml/files/blahtexml-0.9-Makefile.patch b/app-text/blahtexml/files/blahtexml-0.9-Makefile.patch new file mode 100644 index 000000000000..f5f01eac71aa --- /dev/null +++ b/app-text/blahtexml/files/blahtexml-0.9-Makefile.patch @@ -0,0 +1,55 @@ +Use pkg-config for xerces-c +Respect CXX and CC +Replace CFLAGS with CXXFLAGS where needed +Add LDFLAGS + +--- a/makefile ++++ b/makefile +@@ -93,35 +93,40 @@ + + $(BINDIR_XMLIN)/InputSymbolTranslation.o: InputSymbolTranslation.cpp InputSymbolTranslation.inc + +-CFLAGS = -O2 ++PKG_CONFIG ?= pkg-config ++CFLAGS ?= -O2 + + VPATH = Source:Source/BlahtexCore:Source/BlahtexXMLin + + INCLUDES=-I. -ISource -ISource/BlahtexCore -ISource/BlahtexXMLin + ++CXXFLAGS += $(shell $(PKG_CONFIG) --cflags xerces-c) ++ ++XERCES_LIB = $(shell $(PKG_CONFIG) --libs xerces-c) ++ + $(BINDIR)/%.o:%.cpp +- $(CXX) $(INCLUDES) $(CFLAGS) -c $< -o $@ ++ $(CXX) $(INCLUDES) $(CXXFLAGS) -c $< -o $@ + + $(BINDIR)/%.o:%.c + $(CC) $(INCLUDES) $(CFLAGS) -c $< -o $@ + + $(BINDIR_XMLIN)/%.o:%.cpp +- $(CXX) $(INCLUDES) $(CFLAGS) -DBLAHTEXML_USING_XERCES -c $< -o $@ ++ $(CXX) $(INCLUDES) $(CXXFLAGS) -DBLAHTEXML_USING_XERCES -c $< -o $@ + + $(BINDIR_XMLIN)/%.o:%.c + $(CC) $(INCLUDES) $(CFLAGS) -DBLAHTEXML_USING_XERCES -c $< -o $@ + + blahtex-linux: $(BINDIR) $(OBJECTS) $(HEADERS) +- $(CXX) $(CFLAGS) -o blahtex $(OBJECTS) ++ $(CXX) $(CXXFLAGS) $(LDFLAGS) -o blahtex $(OBJECTS) $(LIBS) + + blahtex-mac: $(BINDIR) $(OBJECTS) $(HEADERS) +- $(CXX) $(CFLAGS) -o blahtex -liconv $(OBJECTS) ++ $(CXX) $(CXXFLAGS) $(LDFLAGS) -o blahtex -liconv $(OBJECTS) $(LIBS) + + blahtexml-linux: $(BINDIR_XMLIN) $(OBJECTS_XMLIN) $(HEADERS_XMLIN) +- $(CXX) $(CFLAGS) -o blahtexml $(OBJECTS_XMLIN) -lxerces-c ++ $(CXX) $(CXXFLAGS) $(LDFLAGS) -o blahtexml $(OBJECTS_XMLIN) $(LIBS) $(XERCES_LIB) + + blahtexml-mac: $(BINDIR_XMLIN) $(OBJECTS_XMLIN) $(HEADERS_XMLIN) +- $(CXX) $(CFLAGS) -o blahtexml -liconv $(OBJECTS_XMLIN) -lxerces-c ++ $(CXX) $(CXXFLAGS) $(LDFLAGS) -o blahtexml -liconv $(OBJECTS_XMLIN) $(LIBS) $(XERCES_LIB) + + clean: + rm -f blahtex $(OBJECTS) blahtexml $(OBJECTS_XMLIN) diff --git a/app-text/blahtexml/files/blahtexml-0.9-gcc-4.7.patch b/app-text/blahtexml/files/blahtexml-0.9-gcc-4.7.patch new file mode 100644 index 000000000000..c570e1de679b --- /dev/null +++ b/app-text/blahtexml/files/blahtexml-0.9-gcc-4.7.patch @@ -0,0 +1,24 @@ +Description: Fix FTBFS with gcc 4.7 by fixing missing <unistd.h> includes. +Author: Cyril Brulebois <kibi@debian.org> +Bug-Debian: http://bugs.debian.org/667116 + +--- blahtexml-0.9.orig/Source/main.cpp ++++ blahtexml-0.9/Source/main.cpp +@@ -24,6 +24,7 @@ THIS SOFTWARE IS PROVIDED BY THE COPYRIG + #include <stdlib.h> + #include <sstream> + #include <stdexcept> ++#include <unistd.h> + + using namespace std; + using namespace blahtex; +--- blahtexml-0.9.orig/Source/mainPng.cpp ++++ blahtexml-0.9/Source/mainPng.cpp +@@ -27,6 +27,7 @@ THIS SOFTWARE IS PROVIDED BY THE COPYRIG + #include <stdio.h> + #include <stdlib.h> + #include <sstream> ++#include <unistd.h> + + + using namespace std; diff --git a/app-text/blahtexml/files/blahtexml.1 b/app-text/blahtexml/files/blahtexml.1 new file mode 100644 index 000000000000..a82c8491a770 --- /dev/null +++ b/app-text/blahtexml/files/blahtexml.1 @@ -0,0 +1,90 @@ +.\" Hey, EMACS: -*- nroff -*- +.\" First parameter, NAME, should be all caps +.\" Second parameter, SECTION, should be 1-8, maybe w/ subsection +.\" other parameters are allowed: see man(7), man(1) +.TH BLAHTEXML 1 "March 17, 2010" +.\" Please adjust this date whenever revising the manpage. +.\" +.\" Some roff macros, for reference: +.\" .nh disable hyphenation +.\" .hy enable hyphenation +.\" .ad l left justify +.\" .ad b justify to both left and right margins +.\" .nf disable filling +.\" .fi enable filling +.\" .br insert line break +.\" .sp <n> insert n+1 empty lines +.\" for manpage-specific macros, see man(7) +.SH NAME +blahtexml \- Converts TeX equations into MathML +.SH SYNOPSIS +.B blahtexml +.RI [ options ] " files" ... +.SH DESCRIPTION +This manual page documents briefly the +.B blahtexml +command. +.PP +.\" TeX users may be more comfortable with the \fB<whatever>\fP and +.\" \fI<whatever>\fP escape sequences to invode bold face and italics, +.\" respectively. +\fBblahtexml\fP converts an equation given in a syntax close to TeX into +MathML. Blahtexml is a simple extension of blahtex. In addition to +the functionality of blahtex, blahtexml has XML processing in mind +and is able to process a whole XML document into another XML +document. Instead of converting only one formula at a time, blahtexml +can convert all the formulas of the given XML file into MathML. +.SH OPTIONS +These programs follow the usual GNU command line syntax, with long +options starting with two dashes (`-'). +A summary of options is included below. +For a complete description, see the online documentation. +.TP +.B \-\-help +Show summary of options. +.TP +.B \-\-texvc-compatible-commands +Enables use of commands that are specific to texvc, but that are not +standard TeX/LaTeX/AMS-LaTeX commands. +.TP +.B \-\-print-error-messages +This will print out a list of all error IDs and corresponding messages +that blahtex can possibly emit inside an <error> block. +.SH MATHML OPTIONS +These options control the MathML output of the blahtexml program. + +.TP +.B \-\-mathml +Enables MathML output. +.TP +.B \-\-xmlin +This allows one to embed TeX equations in an existing MathML code, using +a special notation. The equations are given as attributes (inline or block) +in the http://gva.noekeon.org/blahtexml namespace. Whenever blahtexml meets +such an equation, it expands it into the equivalent MathML code. + +For more information check +.RS +http://gva.noekeon.org/blahtexml/how_to_use.html +.RE +.RS +or the blahtexml manual. +.RE +.TP +.B \-\-annotate-TeX +Produces TeX annotations in the MathML output. +.TP +.B \-\-annotate-PNG +Produces PNG files and annotates the MathML output with the PNG file name. +.SH SEE ALSO +The program is documented fully by the +online manual available at: +http://gva.noekeon.org/blahtexml +.SH AUTHOR +blahtexml was written by Gilles Van Assche. +.br +blahtex (whose superset is blahtexml) was written by David Harvey. +.PP +This manual page was written by Abhishek Dasgupta <abhidg@gmail.com>, +for the Debian project (but may be used by others). + diff --git a/app-text/blahtexml/metadata.xml b/app-text/blahtexml/metadata.xml new file mode 100644 index 000000000000..bfcb6974f1c4 --- /dev/null +++ b/app-text/blahtexml/metadata.xml @@ -0,0 +1,8 @@ +<?xml version="1.0" encoding="UTF-8"?> +<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd"> +<pkgmetadata> + <maintainer> + <email>mrueg@gentoo.org</email> + <name>Manuel Rüger</name> + </maintainer> +</pkgmetadata> diff --git a/app-text/bogosort/Manifest b/app-text/bogosort/Manifest new file mode 100644 index 000000000000..532e7b2b3714 --- /dev/null +++ b/app-text/bogosort/Manifest @@ -0,0 +1 @@ +DIST bogosort-0.4.2.tar.gz 161628 SHA256 bfd66ce866bb8935088873c52323a06997f627a209da1017491425d93e5510ef SHA512 2d2f7be36ec08aa78323cbdc5f1030297706c364d6fc82554065cf737295d11c90dd6061323f2732b63c70401d710b2018075bff6d1e6ab0078069b405ea62e9 WHIRLPOOL 35402daa7555d86327d4bc9534b8d92bd0f34413241b8a24914a7bbf32a2f4c7708ea3e8fcc0420c0ba2b73a6708581df8dbfdaead3da05b77a0a9a72c6bb241 diff --git a/app-text/bogosort/bogosort-0.4.2-r1.ebuild b/app-text/bogosort/bogosort-0.4.2-r1.ebuild new file mode 100644 index 000000000000..6796e5d0d20a --- /dev/null +++ b/app-text/bogosort/bogosort-0.4.2-r1.ebuild @@ -0,0 +1,35 @@ +# Copyright 1999-2014 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Id$ + +EAPI="5" + +inherit eutils toolchain-funcs + +DESCRIPTION="A file sorting program which uses the bogosort algorithm" +HOMEPAGE="http://www.lysator.liu.se/~qha/bogosort/" +SRC_URI="ftp://ulrik.haugen.se/pub/unix/bogosort/${P}.tar.gz" + +LICENSE="GPL-2" +SLOT="0" +KEYWORDS="amd64 hppa ~mips ppc sparc x86 ~x86-linux ~ppc-macos" +IUSE="" + +DEPEND="" +RDEPEND="" + +src_prepare() { + epatch \ + "${FILESDIR}"/xmalloc.patch \ + "${FILESDIR}"/${P}-glibc-2.10.patch +} + +src_configure() { + tc-export CC + econf || die +} + +src_install() { + make DESTDIR="${D}" install || die + dodoc README NEWS ChangeLog AUTHORS || die +} diff --git a/app-text/bogosort/files/bogosort-0.4.2-glibc-2.10.patch b/app-text/bogosort/files/bogosort-0.4.2-glibc-2.10.patch new file mode 100644 index 000000000000..ac54c8b61b05 --- /dev/null +++ b/app-text/bogosort/files/bogosort-0.4.2-glibc-2.10.patch @@ -0,0 +1,41 @@ +diff -ur bogosort-0.4.2.orig/getlines.c bogosort-0.4.2/getlines.c +--- bogosort-0.4.2.orig/getlines.c 2002-05-04 23:22:22.000000000 +0300 ++++ bogosort-0.4.2/getlines.c 2009-08-06 14:32:22.000000000 +0300 +@@ -49,7 +49,7 @@ + char **ss = NULL; + + /* read all lines available */ +- while ((s = getline(stream)) != NULL) { ++ while ((s = get_line(stream)) != NULL) { + if (numlines == allocated) /* make more room if needed */ + ss = (char **)xrealloc(ss, + (allocated += LINESTEP) * sizeof (char *)); +@@ -81,7 +81,7 @@ + allocated = numlines + 1; /* this is a lie, but it's close enough */ + + /* read all lines available */ +- while ((s = getline(stream)) != NULL) { ++ while ((s = get_line(stream)) != NULL) { + if (numlines == allocated) /* make more room if needed */ + ss = (char **)xrealloc(ss, + (allocated += LINESTEP) * sizeof (char *)); +@@ -100,7 +100,7 @@ + * line in stream, return NULL on EOF + */ + char * +-getline(FILE *stream) ++get_line(FILE *stream) + { + int c, numchars = 0, allocated = 0; + char *s = NULL; +diff -ur bogosort-0.4.2.orig/getlines.h bogosort-0.4.2/getlines.h +--- bogosort-0.4.2.orig/getlines.h 2002-03-16 00:04:38.000000000 +0200 ++++ bogosort-0.4.2/getlines.h 2009-08-06 14:32:48.000000000 +0300 +@@ -39,6 +39,6 @@ + * getline: return a pointer to a newly allocated string containing the next + * line in stream + */ +-char *getline(FILE *stream); ++char *get_line(FILE *stream); + + #endif /* GETLINES_H */ diff --git a/app-text/bogosort/files/xmalloc.patch b/app-text/bogosort/files/xmalloc.patch new file mode 100644 index 000000000000..41545ca34ba8 --- /dev/null +++ b/app-text/bogosort/files/xmalloc.patch @@ -0,0 +1,15 @@ +--- xmalloc.c.orig 2004-12-15 23:44:16.880786468 +0100 ++++ xmalloc.c 2004-12-15 23:44:21.846546805 +0100 +@@ -68,12 +68,6 @@ + The caller may set it to some other value. */ + int xmalloc_exit_failure = EXIT_FAILURE; + +-#if __STDC__ && (HAVE_VPRINTF || HAVE_DOPRNT) +-void error (int, int, const char *, ...); +-#else +-void error (); +-#endif +- + static VOID * + fixup_null_alloc (n) + size_t n; diff --git a/app-text/bogosort/metadata.xml b/app-text/bogosort/metadata.xml new file mode 100644 index 000000000000..190b1c47c939 --- /dev/null +++ b/app-text/bogosort/metadata.xml @@ -0,0 +1,10 @@ +<?xml version="1.0" encoding="UTF-8"?> +<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd"> +<pkgmetadata> + <herd>shell-tools</herd> + <longdescription lang="en"> + The bogosort will sort a file in a similar way to sort(1), but using + the bogosort algorithm rather than the conventional qsort. The tool + can also randomise the lines in its input. + </longdescription> +</pkgmetadata> diff --git a/app-text/build-docbook-catalog/Manifest b/app-text/build-docbook-catalog/Manifest new file mode 100644 index 000000000000..d40216585f6b --- /dev/null +++ b/app-text/build-docbook-catalog/Manifest @@ -0,0 +1,2 @@ +DIST build-docbook-catalog-1.19.1.tar.xz 4552 SHA256 78c3c6f2e4703d5fd7f24bc737777fadfd52a0d2f7bf4bbdc217cb927721a149 SHA512 9c4b1a30d8b2f820046cf987296035a1418fa55f47c2adc6702cdaa3a01efc8584bdc6804889cf13a85bb1f30b129af5c62ecf8a7376d56d0738f717619ddcc3 WHIRLPOOL c219b126a570ba42e6ed78ccfe8fa581f929bd6562332d2722c33f167831841ffc32e3a919342af6f38c1babeeb6e42172da7c580046a692eae5777f630c2e57 +DIST build-docbook-catalog-1.20.tar.xz 4620 SHA256 9475e60a7eda5d9a427315c0bd60a04b7e1f8a214596d470073aaf9db8ed47d2 SHA512 65656c78709a8da01cfedc786a31da2de125eeb65bdaa3d2e49ed3a0a7ff4429280d5d384f23dca0ab540b74f7c9b2ed4b80e970905a7d2838a841c81925b3f6 WHIRLPOOL 3f2b52f82ca08bfcd4fb81acf6d4a09f5e5a6e466fc1cf6bf1a16fb4f8f47dc60b3fee10e87db7027fcc22d4eff545c071185abf016a0c1e147cb5572c645e88 diff --git a/app-text/build-docbook-catalog/build-docbook-catalog-1.19.1.ebuild b/app-text/build-docbook-catalog/build-docbook-catalog-1.19.1.ebuild new file mode 100644 index 000000000000..af6ea117440b --- /dev/null +++ b/app-text/build-docbook-catalog/build-docbook-catalog-1.19.1.ebuild @@ -0,0 +1,27 @@ +# Copyright 1999-2014 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Id$ + +EAPI="4" + +DESCRIPTION="DocBook XML catalog auto-updater" +HOMEPAGE="http://sources.gentoo.org/gentoo-src/build-docbook-catalog/" +SRC_URI="mirror://gentoo/${P}.tar.xz + http://dev.gentoo.org/~floppym/distfiles/${P}.tar.xz + http://dev.gentoo.org/~vapier/dist/${P}.tar.xz" + +LICENSE="GPL-2" +SLOT="0" +KEYWORDS="alpha amd64 arm arm64 hppa ia64 m68k ~mips ppc ppc64 s390 sh sparc x86 ~amd64-fbsd ~sparc-fbsd ~x86-fbsd" +IUSE="userland_BSD" + +RDEPEND="|| ( sys-apps/util-linux app-misc/getopt ) + !<app-text/docbook-xsl-stylesheets-1.73.1 + userland_BSD? ( sys-apps/flock ) + dev-libs/libxml2" +DEPEND="" + +pkg_postinst() { + # New version -> regen files + build-docbook-catalog +} diff --git a/app-text/build-docbook-catalog/build-docbook-catalog-1.20.ebuild b/app-text/build-docbook-catalog/build-docbook-catalog-1.20.ebuild new file mode 100644 index 000000000000..3f7e2f60229a --- /dev/null +++ b/app-text/build-docbook-catalog/build-docbook-catalog-1.20.ebuild @@ -0,0 +1,36 @@ +# Copyright 1999-2014 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Id$ + +EAPI=5 + +DESCRIPTION="DocBook XML catalog auto-updater" +HOMEPAGE="http://sources.gentoo.org/gentoo-src/build-docbook-catalog/" +SRC_URI="mirror://gentoo/${P}.tar.xz + http://dev.gentoo.org/~floppym/distfiles/${P}.tar.xz + http://dev.gentoo.org/~vapier/dist/${P}.tar.xz" + +LICENSE="GPL-2" +SLOT="0" +KEYWORDS="~alpha ~amd64 ~arm arm64 ~hppa ~ia64 ~m68k ~mips ~ppc ~ppc64 ~s390 ~sh ~sparc ~x86 ~ppc-aix ~amd64-fbsd ~sparc-fbsd ~x86-fbsd ~x64-freebsd ~x86-freebsd ~ia64-hpux ~x86-interix ~amd64-linux ~x86-linux ~ppc-macos ~x64-macos ~x86-macos ~m68k-mint ~sparc-solaris ~sparc64-solaris ~x64-solaris ~x86-solaris" +IUSE="" + +RDEPEND="|| ( sys-apps/util-linux app-misc/getopt ) + !<app-text/docbook-xsl-stylesheets-1.73.1 + dev-libs/libxml2" +DEPEND="" + +pkg_setup() { + # export for bug #490754 + export MAKEOPTS+=" EPREFIX=${EPREFIX}" +} + +src_prepare() { + sed -i -e "/^EPREFIX=/s:=.*:='${EPREFIX}':" build-docbook-catalog || die + has_version sys-apps/util-linux || sed -i -e '/^GETOPT=/s/getopt/&-long/' build-docbook-catalog || die +} + +pkg_postinst() { + # New version -> regen files + build-docbook-catalog +} diff --git a/app-text/build-docbook-catalog/files/build-docbook-catalog-1.19.1-no-flock.patch b/app-text/build-docbook-catalog/files/build-docbook-catalog-1.19.1-no-flock.patch new file mode 100644 index 000000000000..48f054e57a07 --- /dev/null +++ b/app-text/build-docbook-catalog/files/build-docbook-catalog-1.19.1-no-flock.patch @@ -0,0 +1,33 @@ +build-docbook-catalog: avoid usage of non-portable flock + +Solaris has no flock(1), hence use shell-provided until instead to +simulate lock. + +--- build-docbook-catalog ++++ build-docbook-catalog +@@ -65,10 +65,14 @@ + mkdir -p "${ROOT}${ROOTCONFDIR}" || error "could not create ${ROOTCONFDIR}" + fi + ++ local lock="${ROOT}${ROOTCONFDIR}"/build-docbook-catalog-lock + ( + # Lock the dir to avoid trashing other runs that might + # be running parallel. +- flock 123 || error "unable to lock ${ROOTCONFDIR}" ++ touch "${lock}".$$ && \ ++ until ln "${lock}".$$ "${lock}" 2>/dev/null; do sleep 1; done && \ ++ rm "${lock}".$$ ++ [[ -f ${lock}.$$ ]] && error "unable to lock ${ROOTCONFDIR}" + + create_catalogs # will exit on error + for type in xsl xsl-ns xsl-saxon xsl-xalan; do +@@ -90,7 +94,8 @@ + populate_entities + fi + +- ) 123>"${ROOT}${ROOTCONFDIR}/.keep" ++ ) ++ rm "${lock}" + + exit 0 + } diff --git a/app-text/build-docbook-catalog/metadata.xml b/app-text/build-docbook-catalog/metadata.xml new file mode 100644 index 000000000000..4538a68724a6 --- /dev/null +++ b/app-text/build-docbook-catalog/metadata.xml @@ -0,0 +1,5 @@ +<?xml version="1.0" encoding="UTF-8"?> +<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd"> +<pkgmetadata> +<maintainer><email>maintainer-needed@gentoo.org</email></maintainer> +</pkgmetadata> diff --git a/app-text/c2ps/Manifest b/app-text/c2ps/Manifest new file mode 100644 index 000000000000..f6539e3559f9 --- /dev/null +++ b/app-text/c2ps/Manifest @@ -0,0 +1 @@ +DIST c2ps-4.0.tar.gz 48137 SHA256 c22800552b6018a7f01978cf918ad11ec780404b3fa87888e76929a08414a860 SHA512 dde931a201950412c8aad04a59f9ca0862b21a221bb7212ee64cbba0193421f1538804525361075be3ed601c5015a0c4e0c3592696f8b545f5a45524b2c5c619 WHIRLPOOL cefaa75a7553020059b05b0dca0b592a8b18632bb88f7b5b6caa7d22f24c8af95f4e30d0610ba1589b684b4904c7deca6339d5f0e2380bf29f25db9566d9f4b7 diff --git a/app-text/c2ps/c2ps-4.0.ebuild b/app-text/c2ps/c2ps-4.0.ebuild new file mode 100644 index 000000000000..324e8e6e20fd --- /dev/null +++ b/app-text/c2ps/c2ps-4.0.ebuild @@ -0,0 +1,27 @@ +# Copyright 1999-2011 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Id$ + +EAPI=4 +inherit base toolchain-funcs + +DESCRIPTION="Generates a beautified ps document from a source file (c/c++)" +HOMEPAGE="http://www.cs.technion.ac.il/users/c2ps" +SRC_URI="http://www.cs.technion.ac.il/users/c2ps/${P}.tar.gz" + +LICENSE="GPL-2" +SLOT="0" +KEYWORDS="amd64 ~mips ppc sparc x86 ~x86-interix ~amd64-linux ~x86-linux ~ppc-macos" +IUSE="" + +PATCHES=( "${FILESDIR}/${P}-LDFLAGS.patch" ) + +src_compile() { + emake CC="$(tc-getCC)" CCFLAGS="${CFLAGS}" +} + +src_install() { + dodir /usr/bin /usr/share/man/man1 + emake MAN="${ED}"/usr/share/man/man1 PREFIX="${ED}"/usr install + dodoc README +} diff --git a/app-text/c2ps/files/c2ps-4.0-LDFLAGS.patch b/app-text/c2ps/files/c2ps-4.0-LDFLAGS.patch new file mode 100644 index 000000000000..d68002180091 --- /dev/null +++ b/app-text/c2ps/files/c2ps-4.0-LDFLAGS.patch @@ -0,0 +1,11 @@ +--- a/c2ps-4.0/Makefile 1997-05-15 11:50:56.000000000 -0400 ++++ b/c2ps-4.0/Makefile 2010-09-24 19:42:33.000000000 -0400 +@@ -45,7 +45,7 @@ + install -m 644 c2ps.1 $(MAN) + + compile: c2ps.c +- $(CC) $(PREP_OPTIONS) $(CCFLAGS) -o c2ps c2ps.c ++ $(CC) $(LDFLAGS) $(PREP_OPTIONS) $(CCFLAGS) -o c2ps c2ps.c $(LIBS) + + clean: + $(RM) c2ps *.o core *~ diff --git a/app-text/c2ps/metadata.xml b/app-text/c2ps/metadata.xml new file mode 100644 index 000000000000..1fa0ca569505 --- /dev/null +++ b/app-text/c2ps/metadata.xml @@ -0,0 +1,5 @@ +<?xml version="1.0" encoding="UTF-8"?> +<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd"> +<pkgmetadata> +<herd>printing</herd> +</pkgmetadata> diff --git a/app-text/calibre/Manifest b/app-text/calibre/Manifest new file mode 100644 index 000000000000..4cadd17606d9 --- /dev/null +++ b/app-text/calibre/Manifest @@ -0,0 +1,6 @@ +DIST calibre-1.20.0.tar.xz 32430560 SHA256 475e09b1be4b9977240cbbe6743ab79da4b1f1afe3fe6015d212d868e8f2fac4 SHA512 84ac25080cf4948398b79f9a1af688cca9cf9a5a9200b2aad649f5fda1cd0556be4ade0c8b09ea6ffcc95654eac0aaaa5b8f8ed6ea9830174bc150e64de85e31 WHIRLPOOL 61b6ecde2e3f8679c1afea95dcd152a94ce03522c06dff34b406a5705f6255243f0565fbb5f9bef3ac96d7127190bd1b4363233fa24fafcd0412e061201f6fe8 +DIST calibre-1.47.0.tar.xz 36581960 SHA256 efeb71a5bb4742a9c0a99038fdd97baa55c35e8ba5312e19e422c004bbf5b8c2 SHA512 c6131422891bed0615644336ad1dfc52803ff28d7d33994bea4a34f70655d12ab6b638432156665132805a900324742c41f8d5b7963f24eee4b68359fc433ece WHIRLPOOL dac2b04e195206d7956d7bdb5f45b37cd1e7a873db542d26bd0802d886fb9111aba1e603a795d03a2bf3b55d8cdb92671e11dfdc9fdcdc0707e280a380548f0b +DIST calibre-1.48.0.tar.xz 35126680 SHA256 e704090f6611c5e374252c3f1b58e077ccd3170a3ea39893e5bf687287abf472 SHA512 0b70f16b10e6c9bbc24955baf74e8fc8e116aaaa1d75d018f5135f657606286de3bfffbebf3b367b2be52708deb05a162de919bba930dcbff59c4ec15c13b28d WHIRLPOOL 1a07a8c916119e92bdf41276db1aef572b704271808bcd6c3a0a4e823c8a76bd2f4267765dee2f378430beec401288b25b35dee6859980adf5b7a9ebe885eff9 +DIST calibre-2.27.0.tar.xz 36776876 SHA256 6567d58a9878f4ad30756c5ce984fe555393fd94167cb23e279c2a83450e2d8e SHA512 0a87549e40f6a3da5489e29fd6969a16ca1e2d8e52ee4d1520ec146b973c3bf4aac73b182b6bb8a0d520137ebe71804543d65ca313ae1560064258c7fa9ff5fa WHIRLPOOL 11f5157c6e1121b68f50f0a923956e6130233aa04790a61ead3dd36ef601cceb15f6d58e5434e0d94cddbbcdc0f9ea84bfb0fa3839752795d8b6271d39679c90 +DIST calibre-2.31.0.tar.xz 37521892 SHA256 7f7e181d3247e41a1122d572a1980fc4ab1926a393aaafe3e26f5345c4602490 SHA512 099450acb2df68800b810ce19d6c8f650b3484d37ebbf30d74f5b26b3724db326d4c4c0d6cc960bd685adfe24e08bc380449b3ee0957275aad76e95fdf60a910 WHIRLPOOL 0673f3caf8c7fd2252d40d2c2a9b5cf886c03afe9a725317031570aaf7f0a8177cb698a34882ba0344de40cdd30826a93f8504d1ef82da88329fee83708b2033 +DIST calibre-2.33.0.tar.xz 37269672 SHA256 0917248454d120f0a3c6c1aec90ad88818ccc1b7747935acce263a272b8b3548 SHA512 1bc63baecd1c1cd3c239b89c102696d39bd7975860bfc3d9fd6cd4bfdbe1e3b81ed6ec40ff3999568d9b0be3fa46efe0490d1c86edf52d67a84fdc7a890e9525 WHIRLPOOL f59ce44f513730675d59fdf42bce4d7c142c39fcd3e148215686604bbf5c9ac18af1dde7f923c25b68edaec6fa3cccce1f4d5066ea7e1c0361491e94e1d6cd93 diff --git a/app-text/calibre/calibre-1.20.ebuild b/app-text/calibre/calibre-1.20.ebuild new file mode 100644 index 000000000000..97e04cfb5b17 --- /dev/null +++ b/app-text/calibre/calibre-1.20.ebuild @@ -0,0 +1,211 @@ +# Copyright 1999-2014 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Id$ + +EAPI=5 + +inherit eutils fdo-mime bash-completion-r1 multilib toolchain-funcs + +DESCRIPTION="Ebook management application" +HOMEPAGE="http://calibre-ebook.com/" +[[ ${PV} == ${PV%.*}.${PV#*.} ]] && MY_PV=${PV}.0 || MY_PV=${PV} +SRC_URI="http://sourceforge.net/projects/calibre/files/${MY_PV}/${PN}-${MY_PV}.tar.xz" + +LICENSE=" + GPL-3+ + GPL-3 + GPL-2+ + GPL-2 + GPL-1+ + LGPL-3+ + LGPL-2.1+ + LGPL-2.1 + BSD + MIT + Old-MIT + Apache-2.0 + public-domain + || ( Artistic GPL-1+ ) + CC-BY-3.0 + OFL-1.1 + PSF-2 + unRAR +" + +KEYWORDS="amd64 x86" +SLOT="0" +IUSE="+udisks" + +COMMON_DEPEND=" + >=app-text/podofo-0.8.2:= + >=app-text/poppler-0.12.3-r3:=[qt4,xpdf-headers(+)] + >=dev-lang/python-2.7.1:2.7[sqlite,ssl] + >=dev-libs/chmlib-0.40:= + >=dev-libs/icu-4.4:= + dev-python/apsw + >=dev-python/beautifulsoup-3.0.5:python-2 + dev-python/netifaces + >=dev-python/dnspython-1.6.0 + >=dev-python/cssselect-0.7.1 + >=dev-python/cssutils-0.9.9 + >=dev-python/dbus-python-0.82.2 + virtual/python-imaging + >=dev-python/lxml-2.2.1 + >=dev-python/mechanize-0.1.11 + >=dev-python/python-dateutil-1.4.1[python_targets_python2_7(-)] + >=dev-python/PyQt4-4.9.1[X,svg,webkit] + media-fonts/liberation-fonts + >=media-gfx/imagemagick-6.5.9[jpeg,png] + >=media-libs/freetype-2:= + >=media-libs/libwmf-0.2.8 + >=media-libs/libmtp-1.1.4:= + virtual/libusb:1= + dev-qt/qtdbus:4= + dev-qt/qtsvg:4= + >=x11-misc/xdg-utils-1.0.2-r2" + +RDEPEND="${COMMON_DEPEND} + udisks? ( || ( sys-fs/udisks:2 sys-fs/udisks:0 ) )" + +DEPEND="${COMMON_DEPEND} + >=dev-python/setuptools-0.6_rc5 + >=virtual/podofo-build-0.8.2" + +S=${WORKDIR}/${PN} + +src_prepare() { + # Fix outdated version constant. + #sed -e "s#\\(^numeric_version =\\).*#\\1 (${PV//./, })#" \ + # -i src/calibre/constants.py || \ + # die "sed failed to patch constants.py" + + # Avoid sandbox violation in /usr/share/gnome/apps when linux.py + # calls xdg-* (bug #258938). + sed -e "s|'xdg-desktop-menu', 'install'|\\0, '--mode', 'user'|" \ + -e "s|check_call(\\['xdg-desktop-menu', 'forceupdate'\\])|#\\0|" \ + -e "s|\\(CurrentDir(tdir)\\), \\\\\$|\\1:|" \ + -e "s|PreserveMIMEDefaults():||" \ + -e "s|xdg-icon-resource install|\\0 --mode user|" \ + -e "s|cc(\\['xdg-desktop-menu', 'forceupdate'\\])|#\\0|" \ + -e "s|xdg-mime install|\\0 --mode user|" \ + -i src/calibre/linux.py || die "sed failed to patch linux.py" + + # Disable unnecessary privilege dropping for bug #287067. + sed -e "s:if os.geteuid() == 0:if False and os.geteuid() == 0:" \ + -i setup/install.py || die "sed failed to patch install.py" + + sed -e "/^ self\\.check_call(qmc + \\[.*\\.pro'\\])$/a\ +\\ \\ \\ \\ \\ \\ \\ \\ \\ \\ \\ \\ self.check_call(['sed', \ +'-e', 's|^CFLAGS .*|\\\\\\\\0 ${CFLAGS}|', \ +'-e', 's|^CXXFLAGS .*|\\\\\\\\0 ${CXXFLAGS}|', \ +'-e', 's|^LFLAGS .*|\\\\\\\\0 ${LDFLAGS}|', \ +'-i', 'Makefile'])" \ + -i setup/extensions.py || die "sed failed to patch extensions.py" + + # no_updates: do not annoy user with "new version is availible all the time + # disable_plugins: walking sec-hole, wait for upstream to use GHNS interface + epatch \ + "${FILESDIR}/${PN}-1.20-no_updates_dialog.patch" \ + "${FILESDIR}/${PN}-disable_plugins.patch" +} + +src_install() { + # Bypass kbuildsycoca and update-mime-database in order to + # avoid sandbox violations if xdg-mime tries to call them. + cat - > "${T}/kbuildsycoca" <<-EOF + #!${BASH} + exit 0 + EOF + + cp "${T}"/{kbuildsycoca,update-mime-database} + chmod +x "${T}"/{kbuildsycoca,update-mime-database} + + # Unset DISPLAY in order to prevent xdg-mime from triggering a sandbox + # violation with kbuildsycoca as in bug #287067, comment #13. + export -n DISPLAY + + # Bug #352625 - Some LANGUAGE values can trigger the following ValueError: + # File "/usr/lib/python2.6/locale.py", line 486, in getdefaultlocale + # return _parse_localename(localename) + # File "/usr/lib/python2.6/locale.py", line 418, in _parse_localename + # raise ValueError, 'unknown locale: %s' % localename + #ValueError: unknown locale: 46 + export -n LANGUAGE + + # Bug #295672 - Avoid sandbox violation in ~/.config by forcing + # variables to point to our fake temporary $HOME. + export HOME="${T}/fake_homedir" + export XDG_CONFIG_HOME="${HOME}/.config" + export XDG_DATA_HOME="${HOME}/.local/share" + export CALIBRE_CONFIG_DIRECTORY="${XDG_CONFIG_HOME}/calibre" + mkdir -p "${XDG_CONFIG_HOME}" "${CALIBRE_CONFIG_DIRECTORY}" + + tc-export CC CXX + # Bug #334243 - respect LDFLAGS when building extensions + export OVERRIDE_CFLAGS="$CFLAGS" OVERRIDE_LDFLAGS="$LDFLAGS" + local libdir=$(get_libdir) + [[ -n $libdir ]] || die "get_libdir returned an empty string" + + # Bug #472690 - Avoid sandbox violation for /dev/dri/card0. + local x + for x in /dev/dri/card[0-9] ; do + [[ -e ${x} ]] && addpredict ${x} + done + + dodir "/usr/$(get_libdir)/python2.7/site-packages" # for init_calibre.py + PATH=${T}:${PATH} PYTHONPATH=${S}/src${PYTHONPATH:+:}${PYTHONPATH} \ + "${EPREFIX}"/usr/bin/python2.7 setup.py install \ + --root="${D}" \ + --prefix="${EPREFIX}/usr" \ + --libdir="${EPREFIX}/usr/${libdir}" \ + --staging-root="${ED}usr" \ + --staging-libdir="${ED}usr/${libdir}" || die + + grep -rlZ "${ED}" "${ED}" | xargs -0 sed -e "s:${D}:/:g" -i || + die "failed to fix harcoded \$D in paths" + + # The menu entries end up here due to '--mode user' being added to + # xdg-* options in src_prepare. + dodir /usr/share/mime/packages + chmod -fR a+rX,u+w,g-w,o-w "${HOME}"/.local + mv "${HOME}"/.local/share/mime/packages/* "${ED}"usr/share/mime/packages/ || + die "failed to register mime types" + dodir /usr/share/icons + mv "${HOME}"/.local/share/icons/* "${ED}"usr/share/icons/ || + die "failed to install icon files" + + domenu "${HOME}"/.local/share/applications/*.desktop || + die "failed to install .desktop menu files" + + dobashcomp "${ED}"usr/etc/bash_completion.d/calibre + rm -r "${ED}"usr/etc/bash_completion.d + find "${ED}"usr/etc -type d -empty -delete + + cd "${ED}"/usr/share/calibre/fonts/liberation || die + local x + for x in * ; do + [[ -f ${EROOT}usr/share/fonts/liberation-fonts/${x} ]] || continue + ln -sf "../../../fonts/liberation-fonts/${x}" "${x}" || die + done + + einfo "Converting python shebangs" + while read -r -d $'\0' ; do + local shebang=$(head -n1 "$REPLY") + if [[ ${shebang} == "#!"*python* ]] ; then + sed -i -e "1s:.*:#!${EPREFIX}/usr/bin/python2.7:" "$REPLY" || \ + die "sed failed" + fi + done < <(find "${ED}" -type f -print0) + + einfo "Compiling python modules" + "${EPREFIX}"/usr/bin/python2.7 -m compileall -q -f \ + -d "${EPREFIX}"/usr/lib/calibre "${ED}"usr/lib/calibre || die + + newinitd "${FILESDIR}"/calibre-server.init calibre-server + newconfd "${FILESDIR}"/calibre-server.conf calibre-server +} + +pkg_postinst() { + fdo-mime_desktop_database_update + fdo-mime_mime_database_update +} diff --git a/app-text/calibre/calibre-1.47.ebuild b/app-text/calibre/calibre-1.47.ebuild new file mode 100644 index 000000000000..0061c4181b76 --- /dev/null +++ b/app-text/calibre/calibre-1.47.ebuild @@ -0,0 +1,223 @@ +# Copyright 1999-2014 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Id$ + +EAPI=5 + +inherit eutils fdo-mime bash-completion-r1 multilib toolchain-funcs + +DESCRIPTION="Ebook management application" +HOMEPAGE="http://calibre-ebook.com/" +[[ ${PV} == ${PV%.*}.${PV#*.} ]] && MY_PV=${PV}.0 || MY_PV=${PV} +SRC_URI="http://sourceforge.net/projects/calibre/files/${MY_PV}/${PN}-${MY_PV}.tar.xz" + +LICENSE=" + GPL-3+ + GPL-3 + GPL-2+ + GPL-2 + GPL-1+ + LGPL-3+ + LGPL-2.1+ + LGPL-2.1 + BSD + MIT + Old-MIT + Apache-2.0 + public-domain + || ( Artistic GPL-1+ ) + CC-BY-3.0 + OFL-1.1 + PSF-2 + unRAR +" + +KEYWORDS="~amd64 ~arm ~x86" +SLOT="0" +IUSE="+udisks" + +COMMON_DEPEND=" + >=app-text/podofo-0.8.2:= + >=app-text/poppler-0.20.2:=[qt4,xpdf-headers(+)] + >=dev-lang/python-2.7.1:2.7[sqlite,ssl] + >=dev-libs/chmlib-0.40:= + >=dev-libs/icu-4.4:= + >=dev-python/apsw-3.7.17[python_targets_python2_7(-)] + >=dev-python/beautifulsoup-3.0.5:python-2[python_targets_python2_7(-)] + dev-python/netifaces[python_targets_python2_7(-)] + >=dev-python/dnspython-1.6.0[python_targets_python2_7(-)] + >=dev-python/cssselect-0.7.1[python_targets_python2_7(-)] + >=dev-python/cssutils-0.9.9[python_targets_python2_7(-)] + >=dev-python/dbus-python-0.82.2[python_targets_python2_7(-)] + >=dev-python/lxml-3.2.1[python_targets_python2_7(-)] + >=dev-python/mechanize-0.1.11[python_targets_python2_7(-)] + >=dev-python/python-dateutil-1.4.1[python_targets_python2_7(-)] + >=dev-python/PyQt4-4.9.6[X,svg,webkit,python_targets_python2_7(-)] + dev-qt/qtdbus:4= + dev-qt/qtsvg:4= + media-fonts/liberation-fonts + >=media-gfx/imagemagick-6.5.9[jpeg,png] + >=media-libs/freetype-2:= + >=media-libs/libwmf-0.2.8 + >=media-libs/libmtp-1.1.5:= + virtual/libusb:1= + virtual/python-imaging[python_targets_python2_7(-)] + >=x11-misc/xdg-utils-1.0.2-r2" + +RDEPEND="${COMMON_DEPEND} + udisks? ( || ( sys-fs/udisks:2 sys-fs/udisks:0 ) )" + +DEPEND="${COMMON_DEPEND} + >=dev-python/setuptools-0.6_rc5 + >=virtual/podofo-build-0.8.2" + +S=${WORKDIR}/${PN} + +src_prepare() { + # Fix outdated version constant. + #sed -e "s#\\(^numeric_version =\\).*#\\1 (${PV//./, })#" \ + # -i src/calibre/constants.py || \ + # die "sed failed to patch constants.py" + + # Avoid sandbox violation in /usr/share/gnome/apps when linux.py + # calls xdg-* (bug #258938). + sed -e "s|'xdg-desktop-menu', 'install'|\\0, '--mode', 'user'|" \ + -e "s|check_call(\\['xdg-desktop-menu', 'forceupdate'\\])|#\\0|" \ + -e "s|\\(CurrentDir(tdir)\\), \\\\\$|\\1:|" \ + -e "s|PreserveMIMEDefaults():||" \ + -e "s|xdg-icon-resource install|\\0 --mode user|" \ + -e "s|cc(\\['xdg-desktop-menu', 'forceupdate'\\])|#\\0|" \ + -e "s|'xdg-mime', 'install'|\\0, '--mode', 'user'|" \ + -i src/calibre/linux.py || die "sed failed to patch linux.py" + + # Disable unnecessary privilege dropping for bug #287067. + sed -e "s:if os.geteuid() == 0:if False and os.geteuid() == 0:" \ + -i setup/install.py || die "sed failed to patch install.py" + + sed -e "/^ self\\.check_call(qmc + \\[.*\\.pro'\\])$/a\ +\\ \\ \\ \\ \\ \\ \\ \\ \\ \\ \\ \\ self.check_call(['sed', \ +'-e', 's|^CFLAGS .*|\\\\\\\\0 ${CFLAGS}|', \ +'-e', 's|^CXXFLAGS .*|\\\\\\\\0 ${CXXFLAGS}|', \ +'-e', 's|^LFLAGS .*|\\\\\\\\0 ${LDFLAGS}|', \ +'-i', 'Makefile'])" \ + -i setup/extensions.py || die "sed failed to patch extensions.py" + + # use system beautifulsoup, instead of bundled + rm -f "${S}"/src/calibre/ebooks/BeautifulSoup.py || die "could not remove bundled beautifulsoup" + find "${S}" -type f -name \*.py -exec \ + sed -e 's/calibre.ebooks.BeautifulSoup/BeautifulSoup/' -i {} + \ + || die "could not sed bundled beautifulsoup out of the source tree" + + # no_updates: do not annoy user with "new version is availible all the time + # disable_plugins: walking sec-hole, wait for upstream to use GHNS interface + # C locale: if LC_ALL=C do not raise an exception when locale cannot be canonicalized + epatch \ + "${FILESDIR}/${PN}-1.34-no_updates_dialog.patch" \ + "${FILESDIR}/${PN}-disable_plugins.patch" + + # override install path for bash-completions + local mybcd="${D}/$(get_bashcompdir)" + sed -e "s#^def \(get_bash_completion_path.*\)\$#def \1\n return os.path.join('${mybcd}','calibre')\n\ndef old_\1#" \ + -i "${S}"/src/calibre/linux.py || die "Could not fix bash-completions install path" +} + +src_install() { + # Bypass kbuildsycoca and update-mime-database in order to + # avoid sandbox violations if xdg-mime tries to call them. + cat - > "${T}/kbuildsycoca" <<-EOF + #!${BASH} + exit 0 + EOF + + cp "${T}"/{kbuildsycoca,update-mime-database} + chmod +x "${T}"/{kbuildsycoca,update-mime-database} + + # Unset DISPLAY in order to prevent xdg-mime from triggering a sandbox + # violation with kbuildsycoca as in bug #287067, comment #13. + export -n DISPLAY + + # Bug #352625 - Some LANGUAGE values can trigger the following ValueError: + # File "/usr/lib/python2.6/locale.py", line 486, in getdefaultlocale + # return _parse_localename(localename) + # File "/usr/lib/python2.6/locale.py", line 418, in _parse_localename + # raise ValueError, 'unknown locale: %s' % localename + #ValueError: unknown locale: 46 + export -n LANGUAGE + + # Bug #295672 - Avoid sandbox violation in ~/.config by forcing + # variables to point to our fake temporary $HOME. + export HOME="${T}/fake_homedir" + export XDG_CONFIG_HOME="${HOME}/.config" + export XDG_DATA_HOME="${HOME}/.local/share" + export CALIBRE_CONFIG_DIRECTORY="${XDG_CONFIG_HOME}/calibre" + mkdir -p "${XDG_CONFIG_HOME}" "${CALIBRE_CONFIG_DIRECTORY}" + + tc-export CC CXX + # Bug #334243 - respect LDFLAGS when building extensions + export OVERRIDE_CFLAGS="$CFLAGS" OVERRIDE_LDFLAGS="$LDFLAGS" + local libdir=$(get_libdir) + [[ -n $libdir ]] || die "get_libdir returned an empty string" + + # Bug #472690 - Avoid sandbox violation for /dev/dri/card0. + local x + for x in /dev/dri/card[0-9] ; do + [[ -e ${x} ]] && addpredict ${x} + done + + dodir "/usr/$(get_libdir)/python2.7/site-packages" # for init_calibre.py + PATH=${T}:${PATH} PYTHONPATH=${S}/src${PYTHONPATH:+:}${PYTHONPATH} \ + "${EPREFIX}"/usr/bin/python2.7 setup.py install \ + --root="${D}" \ + --prefix="${EPREFIX}/usr" |