From 4f2d7949f03e1c198bc888f2d05f421d35c57e21 Mon Sep 17 00:00:00 2001 From: V3n3RiX Date: Mon, 9 Oct 2017 18:53:29 +0100 Subject: reinit the tree, so we can have metadata --- x11-libs/goffice/Manifest | 10 + .../goffice/files/goffice-0.8.17-no-pcre.patch | 219 +++++++++++++++++++++ x11-libs/goffice/goffice-0.10.32.ebuild | 51 +++++ x11-libs/goffice/goffice-0.10.35.ebuild | 51 +++++ x11-libs/goffice/goffice-0.8.17-r2.ebuild | 64 ++++++ x11-libs/goffice/metadata.xml | 12 ++ 6 files changed, 407 insertions(+) create mode 100644 x11-libs/goffice/Manifest create mode 100644 x11-libs/goffice/files/goffice-0.8.17-no-pcre.patch create mode 100644 x11-libs/goffice/goffice-0.10.32.ebuild create mode 100644 x11-libs/goffice/goffice-0.10.35.ebuild create mode 100644 x11-libs/goffice/goffice-0.8.17-r2.ebuild create mode 100644 x11-libs/goffice/metadata.xml (limited to 'x11-libs/goffice') diff --git a/x11-libs/goffice/Manifest b/x11-libs/goffice/Manifest new file mode 100644 index 000000000000..26e84e0b3869 --- /dev/null +++ b/x11-libs/goffice/Manifest @@ -0,0 +1,10 @@ +AUX goffice-0.8.17-no-pcre.patch 6490 SHA256 dd22ff8ffdea5618ff7357b9a36d68522f0bd4a9236d40e578182f8a6c2049d5 SHA512 70af548433fed3f95b4b64cd7debf0cef0b8b7f7796c155be5d29a060ec2f3883d06703fc42e6dae40d4eb6933f45f2eef1c0d9f2088b5fc2e89ef580fc79b13 WHIRLPOOL ed84effb61cc08076245871e16172de1eceba0c063bf92351e95ba37e8f23e5094db7d7a67ba572d2bd5648877a5b86eb22beb7e260455f9ea0a84aa516267ea +DIST goffice-0.10.32.tar.xz 2366700 SHA256 02b37da9f54fb92725b973875d1d2da49b54f6486eb03648fd1ea58e4a297ac3 SHA512 96bdeb4f7771db2da7e89fd89d737d0935507b2b4bbc27de6f8a5126ffd1e8f37816131ecaed26cba5b14aba358f49a5c04273beb8279476ae47331cd838de26 WHIRLPOOL b1a4d68bd3659dcf6fbff985536c5be6898a57bd85329182b8c1e88b10e66c86a7f2ba2035d18ca2b4349e9c53360b4f7d71c64522b430473b88232043e138a2 +DIST goffice-0.10.35.tar.xz 2370332 SHA256 c19001afca09dc5446e06605a113d81a57124018a09c5889aeebba16cf1d5738 SHA512 68a274e73b8c237966ff300f129362d5a7a861e0281ca0dca9a0850f0ea30644f16de0eb5480ac8a399e7ff40699af5ddfcd79593c42f06d296ab3e778c368d2 WHIRLPOOL 5b255ccbadb1441f531452110e0fc1c9c8e29833d4c6a7f1577cbab5935ecc1f7ec4bb1c998cefe101ca1e7f36e0238ee5e1905110a288266d1d72429c79df99 +DIST goffice-0.8.17.tar.xz 1814488 SHA256 165070beb67b84580afe80a8a100b674a81d553ab791acd72ac0c655f4fadb15 SHA512 61a3063d37e2ded4d4065d261f728c862daea04090ac38abe2524089ed1ee253e0d77e501f5b3451b1e011491a8225f90fd4914f28ce2a347ecf561098e6400c WHIRLPOOL 12ac2587af25c41686797b9bd5ff93429687217cb3d14e130067685701fd0685ed1c4f9900eb34a15cfb30dcdfe9ebe9f9856a1b4eb6684555d0a9cb1ef86ff1 +EBUILD goffice-0.10.32.ebuild 1237 SHA256 39f0281e670802ae6c4a5db08b6e8cf58f8f2031442b382a08391f0e31a429e2 SHA512 7009c8f8715a210c6abb13fdd069dcb5e25a3550c96461903feedb757ccb20f7bbb19af1b386297a2e395466bcc60a266835064d64174ac0cf603b280ee1cdc4 WHIRLPOOL 03227a2f50574b78834b61837e2edc35328d229d223f7637ad1561af4b89fb1997d824bf1ef1eef6e63c6be98d065df5cc6a1fc32089d3794b2509ba7bdc2e0a +EBUILD goffice-0.10.35.ebuild 1239 SHA256 8829019ce7e030b61d415be6d58a39efa66042338535757d656f353f5713adba SHA512 a48dd15089633a875a8f7aca1ad06e7eaa634be5ecc9206c22fe14db348fe91aa338910cdf052b0dda9654b239161cfdf1d603ad54d9d722c2d717144b100a9d WHIRLPOOL ca01e5c19a738da7246cfc087d34c0414e5ccf02f81d60756698d089dccacee633b9b758c7f9b539cd0d89068393768eb0f44760afecc44fa08de29c46337b2b +EBUILD goffice-0.8.17-r2.ebuild 1426 SHA256 18c5dcf212be64e814d3c3bc71ec1605d64f7132be51f10ed345a797fa01119b SHA512 f674210aa851730d911b7893b30c069b9fca3b79baa5f1dd018c024f366a756ef3487cd0d262edcae7ea0085afe9c40b86b73110e40556c3c62d6da43b3413e6 WHIRLPOOL f02f04b6f988a65fc81018f5386ff5ed67a793a72be6aedbed03e30b959254b6cc77655232d22b925a7f082be9bd88c8cfa114fd2d125abdc9f0e33c1f18e063 +MISC ChangeLog 7572 SHA256 b564e3590580f2d9a8e3a433824033948dc8f72f296527847f7b3e31853c80d7 SHA512 a8e3f36909cd231176cf2994159900b35f7a2d631492619008df017cb3e06c865e4aae22ee4147d9f2cbbc106b527581095bf1e347cb24dfb765ea87758beb3c WHIRLPOOL 6d352c769533c6be4dd3161599de41ed414b2f5e4ac83fbe51c19a2345700ea377ebc030c3e2d16d153f2e2916909e83ca09ab8d9a519d5ed6f6f6785179dcf6 +MISC ChangeLog-2015 23354 SHA256 afe6276e6bf792b103685771ec2d03980d925634e43883fa91e62a1b13ce33f2 SHA512 84be945d45ca895743f54a3f1c6d0c66bb40bd2d56893290155d339290ab1c10eff61ad81047701ed6f7f2f92706f42ac778fa1405d9eba1a600fb72ddf723db WHIRLPOOL b7472f61c678caf9849974891b419b819e11b33d8b17389ce9e5ae0213dd8025014c23a570417169795daaded30d079fa416ac4ff8b110bb237367f9bff24f0c +MISC metadata.xml 441 SHA256 e5879149980210e8f2d49197b3a141a69fff5f9a053f4a3c1bff75e93f39c05f SHA512 69e822f6c8ecb89ae952b30074c2527e8283eeabe32ac6555d043576b21d0f5a40b968b0211574ce8b1836dac85370070ee86905551bdd8cf2418cdc2ac6c3ce WHIRLPOOL a9d10c7bb882c4d6d8b7bd32fa2dda3d77d90c746722916a95ac3c1528ea44476c284d8a3155fee9db63f346a3e4cb05ec691dd4ee03df21e768b1ae87304402 diff --git a/x11-libs/goffice/files/goffice-0.8.17-no-pcre.patch b/x11-libs/goffice/files/goffice-0.8.17-no-pcre.patch new file mode 100644 index 000000000000..4691acdcd8ff --- /dev/null +++ b/x11-libs/goffice/files/goffice-0.8.17-no-pcre.patch @@ -0,0 +1,219 @@ +From 00b816027e11f5fd890df07ae94d720cce106f34 Mon Sep 17 00:00:00 2001 +From: Alexandre Rostovtsev +Date: Fri, 20 Apr 2012 14:57:59 -0400 +Subject: [PATCH] Drop pcre workaround for ]], [[GRegexError error=G_REGEX_ERROR_STRAY_BACKSLASH;]])], +- [AC_DEFINE(HAVE_G_REGEX_ERROR_STRAY_BACKSLASH, 1, [Define if G_REGEX_ERROR_STRAY_BACKSLASH is defined]) +- glib_has_G_REGEX_ERROR_STRAY_BACKSLASH=yes +- AC_MSG_RESULT(yes)], +- [AC_MSG_RESULT(no) +- glib_has_G_REGEX_ERROR_STRAY_BACKSLASH=no]) + if test "x$goffice_with_gtk" = "xtrue" ; then + AC_CHECK_FUNCS(gtk_dialog_get_response_for_widget) + AC_CHECK_FUNCS(gtk_widget_set_tooltip_text gtk_tool_item_set_tooltip_text, +@@ -511,21 +504,6 @@ if test $gtk_disable_deprecated = yes; then + CFLAGS="$CFLAGS -DGTK_DISABLE_DEPRECATED" + fi + +-if test "x$glib_has_G_REGEX_ERROR_STRAY_BACKSLASH" = "xno"; then +- dnl Check for working pcre +- AC_CHECK_HEADER(pcre.h,[], AC_MSG_ERROR([Header files for PCRE were not found])) +- AC_CHECK_LIB(pcre,pcre_compile2,[], AC_MSG_ERROR([The PCRE library is missing or too old])) +- AC_MSG_CHECKING([for UTF-8 support in pcre]) +- if (pcretest -C 2>&1) | grep -i "^ *UTF-8 support" >/dev/null; then +- AC_MSG_RESULT(yes) +- LIBS="$LIBS -lpcre" +- EXTRA_LIBS="$EXTRA_LIBS -lpcre" +- else +- AC_MSG_ERROR([The installed PCRE library is not configured for UTF-8 support.]) +- fi +-fi +- +- + AC_DEFUN([GOFFICE_CHECK_FUNC], + [AC_CHECK_FUNC([$1], + [], +diff --git a/goffice/utils/regutf8.c b/goffice/utils/regutf8.c +index bc4aae4..3f32dd6 100644 +--- a/goffice/utils/regutf8.c ++++ b/goffice/utils/regutf8.c +@@ -7,9 +7,6 @@ + + #include + #include "regutf8.h" +-#ifndef HAVE_G_REGEX_ERROR_STRAY_BACKSLASH +-#include +-#endif + #include "go-glib-extras.h" + #include + #include +@@ -21,11 +18,7 @@ void + go_regfree (GORegexp *gor) + { + if (gor->ppcre) { +-#ifdef HAVE_G_REGEX_ERROR_STRAY_BACKSLASH + g_regex_unref (gor->ppcre); +-#else +- pcre_free (gor->ppcre); +-#endif + gor->ppcre = NULL; + } + } +@@ -70,7 +63,6 @@ go_regerror (int errcode, const GORegexp *gor, char *dst, size_t dstsize) + int + go_regcomp (GORegexp *gor, const char *pat, int cflags) + { +-#ifdef HAVE_G_REGEX_ERROR_STRAY_BACKSLASH + GError *error = NULL; + GRegex *r; + int coptions = +@@ -119,47 +111,6 @@ go_regcomp (GORegexp *gor, const char *pat, int cflags) + gor->nosub = (cflags & GO_REG_NOSUB) != 0; + return 0; + } +-#else +- const char *errorptr; +- int errorofs, errorcode; +- pcre *r; +- int coptions = +- PCRE_UTF8 | +- PCRE_NO_UTF8_CHECK | +- ((cflags & GO_REG_ICASE) ? PCRE_CASELESS : 0) | +- ((cflags & GO_REG_NEWLINE) ? PCRE_MULTILINE : 0); +- +- if (&pcre_compile2 == NULL) { +- g_error ("libgoffice has been dynamically linked against a libpcre\n" +- "that lacks the pcre_compile2 function. This indicates a\n" +- "distribution dependency problem. Please report this at\n" +- "bugzilla.gnome.org and for you distribution."); +- } +- +- gor->ppcre = r = pcre_compile2 (pat, coptions, +- &errorcode, &errorptr, &errorofs, +- NULL); +- +- if (r == NULL) { +- switch (errorcode) { +- case 1: case 2: case 3: case 37: return GO_REG_EESCAPE; +- case 4: case 5: return GO_REG_EBRACE; +- case 6: return GO_REG_EBRACK; +- case 7: case 30: return GO_REG_ECTYPE; +- case 8: return GO_REG_ERANGE; +- case 9: case 10: return GO_REG_BADRPT; +- case 14: case 18: case 22: return GO_REG_EPAREN; +- case 15: return GO_REG_ESUBREG; +- case 19: case 20: return GO_REG_ESIZE; +- case 21: return GO_REG_ESPACE; +- default: return GO_REG_BADPAT; +- } +- } else { +- gor->re_nsub = pcre_info (r, NULL, NULL); +- gor->nosub = (cflags & GO_REG_NOSUB) != 0; +- return 0; +- } +-#endif + return 0; + } + +@@ -167,7 +118,6 @@ int + go_regexec (const GORegexp *gor, const char *txt, + size_t nmatch, GORegmatch *pmatch, int eflags) + { +-#ifdef HAVE_G_REGEX_ERROR_STRAY_BACKSLASH + int eoptions = + ((eflags & GO_REG_NOTBOL) ? G_REGEX_MATCH_NOTBOL : 0) | + ((eflags & GO_REG_NOTEOL) ? G_REGEX_MATCH_NOTEOL : 0); +@@ -196,62 +146,6 @@ go_regexec (const GORegexp *gor, const char *txt, + g_match_info_free (match_info); + + return matched ? GO_REG_NOERROR : GO_REG_NOMATCH; +-#else +- size_t txtlen = strlen (txt); +- int eoptions = +- ((eflags & GO_REG_NOTBOL) ? PCRE_NOTBOL : 0) | +- ((eflags & GO_REG_NOTEOL) ? PCRE_NOTEOL : 0); +- int res; +- int *offsets, *allocated; +- int offsetcount; +- if (gor->nosub) +- nmatch = 0; +- +- if (nmatch > 0) { +- /* Paranoia. */ +- if (nmatch >= G_MAXINT / sizeof (int) / 3) +- return GO_REG_ESPACE; +- +- offsetcount = nmatch * 3; +- offsets = allocated = g_try_new (int, offsetcount); +- if (!offsets) +- return GO_REG_ESPACE; +- } else { +- offsets = allocated = NULL; +- offsetcount = 0; +- } +- +- res = pcre_exec (gor->ppcre, NULL, txt, txtlen, 0, eoptions, +- offsets, offsetcount); +- if (res >= 0) { +- int i; +- +- if (res == 0) res = nmatch; +- +- for (i = 0; i < res; i++) { +- pmatch[i].rm_so = offsets[i * 2]; +- pmatch[i].rm_eo = offsets[i * 2 + 1]; +- } +- for (; i < (int)nmatch; i++) { +- pmatch[i].rm_so = -1; +- pmatch[i].rm_eo = -1; +- } +- g_free (allocated); +- return GO_REG_NOERROR; +- } +- +- g_free (allocated); +- switch (res) { +- case PCRE_ERROR_NOMATCH: +- return GO_REG_NOMATCH; +- case PCRE_ERROR_BADUTF8: +- case PCRE_ERROR_BADUTF8_OFFSET: +- /* POSIX doesn't seem to foresee this kind of error. */ +- return GO_REG_BADPAT; +- default: +- return GO_REG_ESPACE; +- } +-#endif + } + + /* ------------------------------------------------------------------------- */ +-- +1.7.8.5 + diff --git a/x11-libs/goffice/goffice-0.10.32.ebuild b/x11-libs/goffice/goffice-0.10.32.ebuild new file mode 100644 index 000000000000..6feb53890851 --- /dev/null +++ b/x11-libs/goffice/goffice-0.10.32.ebuild @@ -0,0 +1,51 @@ +# Copyright 1999-2016 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 + +EAPI="6" +GNOME2_LA_PUNT="yes" + +inherit gnome2 + +DESCRIPTION="A library of document-centric objects and utilities" +HOMEPAGE="https://git.gnome.org/browse/goffice/" + +LICENSE="GPL-2" +SLOT="0.10" +KEYWORDS="~alpha amd64 ~arm ~ia64 ~mips ~ppc ~ppc64 ~sparc x86 ~x86-fbsd ~amd64-linux ~x86-linux ~x64-solaris" +IUSE="+introspection" + +# FIXME: add lasem to tree +RDEPEND=" + >=app-text/libspectre-0.2.6:= + >=dev-libs/glib-2.38.0:2 + dev-libs/libxslt + >=gnome-base/librsvg-2.22:2 + >=gnome-extra/libgsf-1.14.24:=[introspection?] + >=dev-libs/libxml2-2.4.12:2 + >=x11-libs/pango-1.24:= + >=x11-libs/cairo-1.10:=[svg] + x11-libs/libXext:= + x11-libs/libXrender:= + >=x11-libs/gdk-pixbuf-2.22:2 + >=x11-libs/gtk+-3.8.7:3 + introspection? ( + >=dev-libs/gobject-introspection-1:= + >=gnome-extra/libgsf-1.14.23:= ) +" +DEPEND="${RDEPEND} + dev-lang/perl + virtual/perl-Getopt-Long + virtual/perl-IO-Compress + virtual/perl-Compress-Raw-Zlib + >=dev-util/gtk-doc-am-1.12 + >=dev-util/intltool-0.35 + virtual/pkgconfig +" + +src_configure() { + gnome2_src_configure \ + --without-lasem \ + --with-gtk \ + --with-config-backend=gsettings \ + $(use_enable introspection) +} diff --git a/x11-libs/goffice/goffice-0.10.35.ebuild b/x11-libs/goffice/goffice-0.10.35.ebuild new file mode 100644 index 000000000000..7ffe9e16c764 --- /dev/null +++ b/x11-libs/goffice/goffice-0.10.35.ebuild @@ -0,0 +1,51 @@ +# Copyright 1999-2017 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 + +EAPI="6" +GNOME2_LA_PUNT="yes" + +inherit gnome2 + +DESCRIPTION="A library of document-centric objects and utilities" +HOMEPAGE="https://git.gnome.org/browse/goffice/" + +LICENSE="GPL-2" +SLOT="0.10" +KEYWORDS="~alpha ~amd64 ~arm ~ia64 ~mips ~ppc ~ppc64 ~sparc ~x86 ~x86-fbsd ~amd64-linux ~x86-linux ~x64-solaris" +IUSE="+introspection" + +# FIXME: add lasem to tree +RDEPEND=" + >=app-text/libspectre-0.2.6:= + >=dev-libs/glib-2.38.0:2 + dev-libs/libxslt + >=gnome-base/librsvg-2.22:2 + >=gnome-extra/libgsf-1.14.24:=[introspection?] + >=dev-libs/libxml2-2.4.12:2 + >=x11-libs/pango-1.24:= + >=x11-libs/cairo-1.10:=[svg] + x11-libs/libXext:= + x11-libs/libXrender:= + >=x11-libs/gdk-pixbuf-2.22:2 + >=x11-libs/gtk+-3.8.7:3 + introspection? ( + >=dev-libs/gobject-introspection-1:= + >=gnome-extra/libgsf-1.14.23:= ) +" +DEPEND="${RDEPEND} + dev-lang/perl + virtual/perl-Getopt-Long + virtual/perl-IO-Compress + virtual/perl-Compress-Raw-Zlib + >=dev-util/gtk-doc-am-1.12 + >=dev-util/intltool-0.35 + virtual/pkgconfig +" + +src_configure() { + gnome2_src_configure \ + --without-lasem \ + --with-gtk \ + --with-config-backend=gsettings \ + $(use_enable introspection) +} diff --git a/x11-libs/goffice/goffice-0.8.17-r2.ebuild b/x11-libs/goffice/goffice-0.8.17-r2.ebuild new file mode 100644 index 000000000000..a1b5eb192dbd --- /dev/null +++ b/x11-libs/goffice/goffice-0.8.17-r2.ebuild @@ -0,0 +1,64 @@ +# Copyright 1999-2015 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 + +EAPI="5" +GCONF_DEBUG="no" +GNOME2_LA_PUNT="yes" + +inherit autotools eutils gnome2 + +DESCRIPTION="A library of document-centric objects and utilities" +HOMEPAGE="https://git.gnome.org/browse/goffice/" + +LICENSE="GPL-2" +SLOT="0.8" +KEYWORDS="~alpha amd64 ~arm ~ia64 ~mips ~ppc ~ppc64 ~sparc x86 ~x86-fbsd ~amd64-linux ~x86-linux ~x64-solaris" +IUSE="gnome" + +# Build fails with -gtk +# FIXME: add lasem to tree +RDEPEND=" + >=dev-libs/glib-2.16:2 + >=gnome-extra/libgsf-1.14.9 + >=dev-libs/libxml2-2.4.12:2 + >=x11-libs/pango-1.8.1 + >=x11-libs/cairo-1.2[svg] + x11-libs/libXext + x11-libs/libXrender + >=x11-libs/gtk+-2.16:2 + gnome? ( >=gnome-base/gconf-2:2 ) +" +DEPEND="${RDEPEND} + virtual/pkgconfig + >=dev-util/intltool-0.35 + dev-util/gtk-doc-am + + gnome-base/gnome-common +" +# eautoreconf requires: gnome-common + +src_prepare() { + # bug #404271, https://bugzilla.gnome.org/show_bug.cgi?id=670316 + epatch "${FILESDIR}/${P}-no-pcre.patch" + + mv configure.in configure.ac || die + eautoreconf + gnome2_src_prepare +} + +src_configure() { + local myconf + DOCS="AUTHORS BUGS ChangeLog MAINTAINERS NEWS README" + + # Gsettings is still experimental + if use gnome; then + myconf="${myconf} --with-config-backend=gconf" + else + myconf="${myconf} --with-config-backend=keyfile" + fi + + gnome2_src_configure \ + --without-lasem \ + --with-gtk \ + ${myconf} +} diff --git a/x11-libs/goffice/metadata.xml b/x11-libs/goffice/metadata.xml new file mode 100644 index 000000000000..2bc9db5d368f --- /dev/null +++ b/x11-libs/goffice/metadata.xml @@ -0,0 +1,12 @@ + + + + + gnome@gentoo.org + Gentoo GNOME Desktop + + + GOffice is a library of document-centric objects and utilities building + on top of GLib and Gtk+ and used by software such as Gnumeric. + + -- cgit v1.2.3