diff options
Diffstat (limited to 'app-text/paps')
-rw-r--r-- | app-text/paps/Manifest | 9 | ||||
-rw-r--r-- | app-text/paps/files/paps-0.6.8-fix-as-needed-build.patch | 36 | ||||
-rw-r--r-- | app-text/paps/files/paps-0.6.8-fix-doxygen-acinclude.patch | 20 | ||||
-rw-r--r-- | app-text/paps/files/paps-0.6.8-fix-empty-file.patch | 23 | ||||
-rw-r--r-- | app-text/paps/files/paps-0.6.8-fix-freetype-include.patch | 14 | ||||
-rw-r--r-- | app-text/paps/metadata.xml | 11 | ||||
-rw-r--r-- | app-text/paps/paps-0.6.8-r2.ebuild | 37 |
7 files changed, 150 insertions, 0 deletions
diff --git a/app-text/paps/Manifest b/app-text/paps/Manifest new file mode 100644 index 000000000000..fad5498632bd --- /dev/null +++ b/app-text/paps/Manifest @@ -0,0 +1,9 @@ +AUX paps-0.6.8-fix-as-needed-build.patch 1051 SHA256 0df19dae30e2e22142cc4085088c48e98201b33d308073883a0ac88fee88a6e8 SHA512 943a2e2d267cf339cc3958ae5622fb4f8c3cd25fca63fa6c91c5b37c34e833dbdaf3a11e038d00b23a44fc590a268729941fee790f9f513f0532f9c339141695 WHIRLPOOL 23ef8def7c451b9f7c20e3ddebecdd08fc2b812511021fe278f69a826dd16e50f97b8736aaaece8dcf3a82eca9dd466f02f28e71698e9e4d972ccd02dc425b5b +AUX paps-0.6.8-fix-doxygen-acinclude.patch 699 SHA256 3ad387e3acacb577ec8072d00a5886cc742c688b7ffa41824420bd04a4d7f1e7 SHA512 b3c0949e7b6579cd3c3f82692ca2e0e9479bf435cc99b8c9c71e1842e32bccd9a79c2c199541ced21812ebf5cfc0887304511aa7cd1d4eba4bb2d476c4710b7b WHIRLPOOL 8593a2394e8c973c16793fc3c9be393c5e8e11ac70c3e9e0f91c24e53aae7b10fd420cf43902890ebab91339d543bb4cf7f85e51b76421914f848301d6f71436 +AUX paps-0.6.8-fix-empty-file.patch 558 SHA256 43b92010ae6a90829ee9799474c66760108e0f13928faaf5fc030a12dedde487 SHA512 19d28f75664a7a626564176c223df77445710d7a941d145046dfdc5697dbacab25b60329e3ddda4f7ef6dcb5c1b4f14ad5641d190d83b8a17ddfa76bfb934a01 WHIRLPOOL b5446f05d18e71c447fc219b619da9f4209a64c582d619ab072f70e43a8201afa4fe86352116a837c686c8dc957e8cc6a28cca37385575a18f2a532ca25ed661 +AUX paps-0.6.8-fix-freetype-include.patch 323 SHA256 b6a731df8c5a315ee70873d4e8f045082b316579f146b2a9e872c8ecf961b2ce SHA512 1ace4c661972853390feaf3f4a123416a6847b5d969017884df75561255a487c0c1e0adf37a1904f17c6855996a2edb0a5e388c996d31224f713bdba9425b287 WHIRLPOOL a9e253769c56df915d75ed2237bc6283724969283cf8e9ddfc4a748c4f706d3c13e2e38dbed0302b4a35706d51cfb39d3a3a8eb97fd2ae912b305f070d864f8b +DIST paps-0.6.8.tar.gz 460062 SHA256 db214c4ea7ecde2f7986b869f6249864d3ff364e6f210c15aa2824bcbd850a20 SHA512 db657d90179e11fe42bbcdbebe09a84f1927c99d0b539c9e29b66b3cb8ffcf33ff500c9d81835ae5a0880382bf8f24801f04742517b76b8e005b125a139d8bba WHIRLPOOL 69291aeadac3d85c1f0ca53bbe09b0510949b75159ca138c3102e1708e898a50a38fa4b78c9003957fb83da82ade57a5e26be8b63bb68c2022148f45f2615e27 +EBUILD paps-0.6.8-r2.ebuild 777 SHA256 d85a1047977fe9495a822e7e79960e18f49e891d5e2c77e7685e905a36dcb53b SHA512 bfccabf0ecdea578b095022acd26280ff4d2ed9cdcc342787169dbc6d6040dc13221ee4d6c36ccc756645de785b75b48307437db5aab2d28f7445d6fba0f754c WHIRLPOOL 47e6bd1f6742b37c756c93256c585642ab78ea1d8dc41496aa2fa66248b2db981155ffc96ea9bf5120f3ac824f8ecc35720a490cc885410b627013de3c2458a1 +MISC ChangeLog 3716 SHA256 548a2af23fdb803a159c23adcb4b7f8eef0275bed7417fe15da5f46ad779e198 SHA512 328d9e564cfb269638e1157cf15bb21509bfee79f172ba35058719d5d82277a56dd3b0e483cf22277e700bc49864be9fe1b08a2660080d06fd33fb7df28d805a WHIRLPOOL 8d14f77413cbecfd20b2e08122c741bdd2e1529803b5a6028d0f8f9572bedb664bc71199b36f4e43687abe6bc40d146d4150ee57cfc0799528d451784d44848e +MISC ChangeLog-2015 1306 SHA256 a51b070875206febe9f827c1374862fd05706e04d1f1be498fd6165f05a46924 SHA512 ef4f16a0ec257e79a3e74d7e92b06e7147e86e7c1dcae4b716db7987a58619a0657f468ba8b253999acbd3e4cd013a5b9dd58d3d37ed3ea79a4d94d6d4f97ae3 WHIRLPOOL c153c8a00607fb65d3e1a59ab511c25a99dbddf78c386a717a4387024666ae1e16074a0c334e45c5092e57b5c8bd908df9fa35740c2f1599db6a4468452e0629 +MISC metadata.xml 317 SHA256 890bd71fb68b5cb6859bb3a30cbe0608592e129ce94b5f1e83e888f563858120 SHA512 8f35f01381203ad3dc040eaad87a286b1c8ded91eb9f0d6d77f98168a49dafed6e6c4c7235cf4eee163981178d5c967c819625008cac700202378f717f90421a WHIRLPOOL 8d3d5f66a047ecdedf3cf75afce095d8830099768362037567a423b17e97b5767a5c92bb0a113953853755400478301ac62825dbff2bfec14f4ec54346210395 diff --git a/app-text/paps/files/paps-0.6.8-fix-as-needed-build.patch b/app-text/paps/files/paps-0.6.8-fix-as-needed-build.patch new file mode 100644 index 000000000000..ec4ba8b2b180 --- /dev/null +++ b/app-text/paps/files/paps-0.6.8-fix-as-needed-build.patch @@ -0,0 +1,36 @@ +--- paps-0.6.8/configure.in ++++ paps-0.6.8/configure.in +@@ -18,4 +18,6 @@ + + DX_INIT_DOXYGEN(libpaps, doxygen.cfg, doxygen-doc) + ++PKG_CHECK_MODULES([PANGO], [pangoft2]) ++ + AC_OUTPUT(Makefile src/Makefile) +--- paps-0.6.8/src/Makefile.am ++++ paps-0.6.8/src/Makefile.am +@@ -7,21 +7,19 @@ + bin_PROGRAMS = paps + paps_CFLAGS = -Wall + paps_SOURCES = paps.c +-paps_LDADD = $(lib_LIBRARIES) $(all_libraries) +-paps_LDFLAGS = `pkg-config --libs pangoft2` ++paps_LDADD = $(lib_LIBRARIES) $(all_libraries) $(PANGO_LIBS) + paps_DEPENDENCIES = $(lib_LIBRARIES) + + EXTRA_DIST = test_libpaps.c paps.1 + + # set the include path found by configure +-INCLUDES= $(all_includes) `pkg-config --cflags pangoft2` ++INCLUDES= $(all_includes) $(PANGO_CFLAGS) + + # Test program + noinst_PROGRAMS = test_libpaps + + + test_libpaps_SOURCES = test_libpaps.c +-test_libpaps_LDADD = $(lib_LIBRARIES) $(all_libraries) +-test_libpaps_LDFLAGS = `pkg-config --libs pangoft2` ++test_libpaps_LDADD = $(lib_LIBRARIES) $(all_libraries) $(PANGO_LIBS) + test_libpaps_DEPENDENCIES = $(lib_LIBRARIES) + diff --git a/app-text/paps/files/paps-0.6.8-fix-doxygen-acinclude.patch b/app-text/paps/files/paps-0.6.8-fix-doxygen-acinclude.patch new file mode 100644 index 000000000000..baba74b4b8bb --- /dev/null +++ b/app-text/paps/files/paps-0.6.8-fix-doxygen-acinclude.patch @@ -0,0 +1,20 @@ +--- paps-0.6.8/acinclude.m4 ++++ paps-0.6.8/acinclude.m4 +@@ -78,7 +78,7 @@ + AC_PATH_TOOL([$1], [$2]) + if test "$DX_FLAG_[]DX_CURRENT_FEATURE$$1" = 1; then + AC_MSG_WARN([$2 not found - will not DX_CURRENT_DESCRIPTION]) +- AC_SUBST([DX_FLAG_[]DX_CURRENT_FEATURE], 0) ++ AC_SUBST([DX_FLAG_]DX_CURRENT_FEATURE, 0) + fi + ]) + +@@ -101,7 +101,7 @@ + # ---------------------------------------------------------- + # Turn off the DX_CURRENT_FEATURE if the required feature is off. + AC_DEFUN([DX_CLEAR_DEPEND], [ +-test "$DX_FLAG_$1" = "$2" || AC_SUBST([DX_FLAG_[]DX_CURRENT_FEATURE], 0) ++test "$DX_FLAG_$1" = "$2" || AC_SUBST([DX_FLAG_]DX_CURRENT_FEATURE, 0) + ]) + + # DX_FEATURE_ARG(FEATURE, DESCRIPTION, diff --git a/app-text/paps/files/paps-0.6.8-fix-empty-file.patch b/app-text/paps/files/paps-0.6.8-fix-empty-file.patch new file mode 100644 index 000000000000..ae334d1d28c0 --- /dev/null +++ b/app-text/paps/files/paps-0.6.8-fix-empty-file.patch @@ -0,0 +1,23 @@ +https://bugs.gentoo.org/show_bug.cgi?id=566050#c2 + +--- paps-0.6.8/src/paps.c ++++ paps-0.6.8/src/paps.c +@@ -569,11 +569,14 @@ + + fclose (file); + +- /* Add a trailing new line if it is missing */ +- if (inbuf->str[inbuf->len-1] != '\n') +- g_string_append(inbuf, "\n"); ++ if (inbuf->len) { ++ /* Add a trailing new line if it is missing */ ++ if (inbuf->str[inbuf->len-1] != '\n') ++ g_string_append(inbuf, "\n"); + +- text = inbuf->str; ++ text = inbuf->str; ++ } else ++ text = g_strdup("\n"); + g_string_free (inbuf, FALSE); + + return text; diff --git a/app-text/paps/files/paps-0.6.8-fix-freetype-include.patch b/app-text/paps/files/paps-0.6.8-fix-freetype-include.patch new file mode 100644 index 000000000000..ab97d22a2957 --- /dev/null +++ b/app-text/paps/files/paps-0.6.8-fix-freetype-include.patch @@ -0,0 +1,14 @@ +--- paps-0.6.8/src/libpaps.c ++++ paps-0.6.8/src/libpaps.c +@@ -25,8 +25,9 @@ + + #include <pango/pango.h> + #include <pango/pangoft2.h> +-#include <freetype/ftglyph.h> +-#include <freetype/ftoutln.h> ++#include <ft2build.h> ++#include FT_GLYPH_H ++#include FT_OUTLINE_H + #include <errno.h> + #include <stdlib.h> + #include <stdio.h> diff --git a/app-text/paps/metadata.xml b/app-text/paps/metadata.xml new file mode 100644 index 000000000000..3258972788e0 --- /dev/null +++ b/app-text/paps/metadata.xml @@ -0,0 +1,11 @@ +<?xml version="1.0" encoding="UTF-8"?> +<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd"> +<pkgmetadata> + <maintainer type="person"> + <email>xmw@gentoo.org</email> + <name>Michael Weber</name> + </maintainer> + <upstream> + <remote-id type="sourceforge">paps</remote-id> + </upstream> +</pkgmetadata> diff --git a/app-text/paps/paps-0.6.8-r2.ebuild b/app-text/paps/paps-0.6.8-r2.ebuild new file mode 100644 index 000000000000..3b8795277278 --- /dev/null +++ b/app-text/paps/paps-0.6.8-r2.ebuild @@ -0,0 +1,37 @@ +# Copyright 1999-2015 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 + +EAPI=5 + +inherit autotools eutils + +DESCRIPTION="Unicode-aware text to PostScript converter" +HOMEPAGE="http://paps.sourceforge.net/" +SRC_URI="mirror://sourceforge/${PN}/${P}.tar.gz" + +LICENSE="LGPL-2" +SLOT="0" +KEYWORDS="amd64 x86" +IUSE="" + +RDEPEND="x11-libs/pango" +DEPEND="${RDEPEND} + virtual/pkgconfig" + +src_prepare() { + epatch \ + "${FILESDIR}"/${P}-fix-as-needed-build.patch \ + "${FILESDIR}"/${P}-fix-doxygen-acinclude.patch \ + "${FILESDIR}"/${P}-fix-freetype-include.patch \ + "${FILESDIR}"/${P}-fix-empty-file.patch + + mv configure.in configure.ac || die + + eautoreconf +} + +src_install() { + dobin src/paps + doman src/paps.1 + dodoc AUTHORS ChangeLog NEWS README TODO +} |