diff options
author | V3n3RiX <venerix@redcorelinux.org> | 2017-10-09 18:53:29 +0100 |
---|---|---|
committer | V3n3RiX <venerix@redcorelinux.org> | 2017-10-09 18:53:29 +0100 |
commit | 4f2d7949f03e1c198bc888f2d05f421d35c57e21 (patch) | |
tree | ba5f07bf3f9d22d82e54a462313f5d244036c768 /app-text/convertlit |
reinit the tree, so we can have metadata
Diffstat (limited to 'app-text/convertlit')
-rw-r--r-- | app-text/convertlit/Manifest | 10 | ||||
-rw-r--r-- | app-text/convertlit/convertlit-1.8-r1.ebuild | 46 | ||||
-rw-r--r-- | app-text/convertlit/convertlit-1.8-r3.ebuild | 44 | ||||
-rw-r--r-- | app-text/convertlit/files/convertlit-1.8-respectflags-r1.patch | 28 | ||||
-rw-r--r-- | app-text/convertlit/files/convertlit-1.8-respectflags.patch | 28 | ||||
-rw-r--r-- | app-text/convertlit/files/fix-Wformat-security-warnings.patch | 34 | ||||
-rw-r--r-- | app-text/convertlit/files/support-ar-variable.patch | 11 | ||||
-rw-r--r-- | app-text/convertlit/metadata.xml | 12 |
8 files changed, 213 insertions, 0 deletions
diff --git a/app-text/convertlit/Manifest b/app-text/convertlit/Manifest new file mode 100644 index 000000000000..fef72c64d35a --- /dev/null +++ b/app-text/convertlit/Manifest @@ -0,0 +1,10 @@ +AUX convertlit-1.8-respectflags-r1.patch 838 SHA256 7e7eca180e5edc04b55cdf41476eb4f8659d5ab4e9641ad7891e2a1267e2cd88 SHA512 d02f79dd787712eeab3b13ea7b7e8553a3aa31767bf1a10cc6a714c9e93b6c82ae1fefce9507393268bcbd8bcd9d5939ea41da4a5b18368f4244b5f2e6eb2256 WHIRLPOOL b210a50021cbd12861b677daa96705973b5ec4fe63ad556db29b780ef830ab28cda72d38adbd60349c1c85a22374a14c35dd91a2ca3a298df95af5fbbc162d92 +AUX convertlit-1.8-respectflags.patch 840 SHA256 64c23b1ea950305f1f6a47e248a4454a8b73091fdc58da05514e1178ee6976ae SHA512 ff5bc3ddeb7e59d6068a907bae710c705c861e9f8f439b8d6105c2bc2bb391ac3407cd884f8baa1d0998c60ab4ffd9ad53cc35dd64dcd461f4ac2f6782723dbc WHIRLPOOL 5f7a20f462e2dd6e1cbe9cc9e7866c4db8ed73fac770a67a077e3b2d61594f117ba550e6af8e4b28ca7efedb5f6b33567d70cd34166c4a8bd045cdf8244045ce +AUX fix-Wformat-security-warnings.patch 936 SHA256 79c587cda8d7639f362d83756508af15f8e7b24c9388eebca2df6e3956544e3a SHA512 6f8798a8b54951c15da4f28d4c8103811c4d77ba96eb12a4e19bc35876c148c1247d19ea5b3d60028b156d50d5dbd67ec5254e47a556d195ca8c084bbc571e4d WHIRLPOOL 5375ebd2ee4cc8c17a9f2cd92566da79abd73b017793b1fba69482c0da85278b0aa780e17e5be21c39638d58e32b1191d6713a5c27161f93d9da5799ac1e13ae +AUX support-ar-variable.patch 408 SHA256 e5f3ae6c0d2d25e548d7d9eb21912e2e788cccf051c6cb518681640b0ee4e67f SHA512 8d807507cccc58979092becb1725d4871f62746f06b3d4ac8740a0704019d3900cd60098497a0d770fcb9bab68e9bf34dc50219afda0995209ea88a71b084ce6 WHIRLPOOL 29ce8c70f350fd1e7841ff4787b4debf27ce0f801ee1572106fb6541939b32f68e3e16e3c34b3d79931c0fd3120f879d1dda43088e05b3c4c7d6513e18427a8f +DIST clit18src.zip 135120 SHA256 d70a85f5b945104340d56f48ec17bcf544e3bb3c35b1b3d58d230be699e557ba SHA512 0d4b7d525f5164a73a47a00e1c4e93ff50e738a4e6c541ded283c4779e6a67138f601c23a41344517ca5d7f8c9141b25cc6edc7f3967fbf9042e99f647354f36 WHIRLPOOL f6cc678fdb4c9b00a5389aa3a2950509c62e5eaf3a9fd14ef38134ae594a583c0d32b0bcd0a940fdc7c5976f0fa160f0fcfb4ae33c5d6251272fc164eee118cb +EBUILD convertlit-1.8-r1.ebuild 882 SHA256 2236b14c47c3c79105304b9215ca12d60a286a4a56a28df070bef95ae19e7b44 SHA512 6dc7d07e27d0ccb621aedc5c9f9c8f99a311645fcb6f1f3761ccbed34c8af4f7b0741bb08ecbb4e4a5994ab2ecc39c6f37772d0799b2c0f8842707dbb5ab7c39 WHIRLPOOL 58d0e4d6c294a9e5195b14b28da7783cf84b1282246de3d1c36dcf5aa3270a8ea87da281644377dc7613a98b2b7982166c942df3f417e98fef221adb3d5a51e0 +EBUILD convertlit-1.8-r3.ebuild 956 SHA256 1961816736636ea05e9cf37a039910eb5ebec5c496e535329e4ddf10c649b025 SHA512 e17043bfd5060376468a160f62b635ff3bbaa430cf6083d2d1a05bd9e8de5762efd912ebef0edda1ef551d7326d69d5898a462def1fb9095e60380474057aacb WHIRLPOOL 580c408cc05deb41ec018547f0e6bd2f263e3a67f8582616c6b50ba080641b46f0ee21ed523890fd11b42bfa3443193b19656611a4b2f3c4ffa9c3cfb8eadde6 +MISC ChangeLog 3278 SHA256 d1ca55ae39c21bf9ebb1a7fcef746199eaaa7cbf8299cf21e1e7939eab3d15a6 SHA512 ebf98d958c7095e1d0be40e5e0af4f6151698147150dbcfbaba4bccf1df3823bd9925df50322c190a83ea15420b86c30b7434bfbee4abf8ec6f5861eb142d1d7 WHIRLPOOL 6e35fd5bf34c10d67022a6c56f7908533f0bbb559bab2eacd3cdcdb56d9605703840aa82981eb065ed027d77de2a5397e7b959de81e1baec51852a43a105470a +MISC ChangeLog-2015 3406 SHA256 99238294d1904e5849e6ff9967e68dfb18839861ec80ca13525677effd82ea35 SHA512 672898c3d2fa562741ef25c6a657df2e40a49e4f4637deaa54763c3a27a954915730089498705053c5b304f9eae23aca3e23f6e639ba8ba03f01fc7924d642b4 WHIRLPOOL a7dc7335bf76b1b872ffdf2e0e46a83ebd267ac6457f2c54e15ead6e907658d05de3e98017a613cfe29f17c49936b0673e3e0860f1da8b797012c67c65d1418a +MISC metadata.xml 562 SHA256 fef5af983ac851a530f45366c84dec3d53e3f35b1dad40c28e077ea4e3744281 SHA512 1264f1669bece35fbd465ebf7911c7d416d85d092aa6e1601b240728fc2a0cb521d913e3bae08962fc5e70c2b70ee17989191e0bc21f04c9c1ed30592ff4820e WHIRLPOOL 57d04af62ff4bde1f67d8f498438cf74a9308fe1a2db2bcfb87ebc0c38dc35f787aa517660e5e642987d25141a53ec6401aed5cda540649e39e1d899cb483f6e diff --git a/app-text/convertlit/convertlit-1.8-r1.ebuild b/app-text/convertlit/convertlit-1.8-r1.ebuild new file mode 100644 index 000000000000..d24d3282ff58 --- /dev/null +++ b/app-text/convertlit/convertlit-1.8-r1.ebuild @@ -0,0 +1,46 @@ +# Copyright 1999-2013 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 + +inherit eutils toolchain-funcs + +MY_P="clit${PV//./}" + +DESCRIPTION="CLit converts MS ebook .lit files to .opf (xml+html+png+jpg)" +HOMEPAGE="http://www.convertlit.com/" +SRC_URI="http://www.convertlit.com/${MY_P}src.zip" + +LICENSE="GPL-2" +SLOT="0" +KEYWORDS="~alpha amd64 ~arm hppa ~ia64 ppc ppc64 x86 ~amd64-fbsd ~amd64-linux ~x86-linux ~ppc-macos" +IUSE="" + +RDEPEND=">=dev-libs/libtommath-0.36-r1" + +DEPEND="${RDEPEND} + app-arch/unzip" + +RDEPEND="${RDEPEND} + !app-text/open_c-lit" + +S=${WORKDIR} + +src_unpack() { + unpack ${A} + cd "${S}" + + epatch "${FILESDIR}/${P}-respectflags.patch" +} + +src_compile() { + tc-export CC + + cd "${S}"/lib + emake || die "make lib failed" + cd "${S}"/${MY_P} + emake || die "make ${MY_P} failed" +} + +src_install() { + dobin ${MY_P}/clit || die + dodoc README +} diff --git a/app-text/convertlit/convertlit-1.8-r3.ebuild b/app-text/convertlit/convertlit-1.8-r3.ebuild new file mode 100644 index 000000000000..dcf0a65454ec --- /dev/null +++ b/app-text/convertlit/convertlit-1.8-r3.ebuild @@ -0,0 +1,44 @@ +# Copyright 1999-2017 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 + +EAPI=6 + +inherit toolchain-funcs + +MY_P="clit${PV//./}" + +DESCRIPTION="CLit converts MS ebook .lit files to .opf (xml+html+png+jpg)" +HOMEPAGE="http://www.convertlit.com/" +SRC_URI="http://www.convertlit.com/${MY_P}src.zip" + +LICENSE="GPL-2" +SLOT="0" +KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~ia64 ~ppc ~ppc64 ~x86 ~amd64-fbsd ~amd64-linux ~x86-linux ~ppc-macos" +IUSE="" + +RDEPEND=">=dev-libs/libtommath-0.36-r1" + +DEPEND="${RDEPEND} + app-arch/unzip" + +S="${WORKDIR}" + +PATCHES=( + "${FILESDIR}/${P}-respectflags-r1.patch" + "${FILESDIR}/fix-Wformat-security-warnings.patch" + "${FILESDIR}/support-ar-variable.patch" +) + +src_compile() { + tc-export CC + + cd "${S}/lib" || die "failed to change into ${S}/lib directory" + emake + cd "${S}/${MY_P}" || die "failed to change into ${S}/${MY_P} directory" + emake +} + +src_install() { + einstalldocs + dobin "${MY_P}/clit" +} diff --git a/app-text/convertlit/files/convertlit-1.8-respectflags-r1.patch b/app-text/convertlit/files/convertlit-1.8-respectflags-r1.patch new file mode 100644 index 000000000000..faedfa0a30a5 --- /dev/null +++ b/app-text/convertlit/files/convertlit-1.8-respectflags-r1.patch @@ -0,0 +1,28 @@ +Index: clit18/Makefile +=================================================================== +--- a/clit18/Makefile ++++ b/clit18/Makefile +@@ -1,9 +1,9 @@ + all: clit
+
+-CFLAGS=-funsigned-char -Wall -O2 -I ../libtommath-0.30/ -I ../lib -I ../lib/des -I .
++CFLAGS+=-funsigned-char -I ../lib -I ../lib/des -I .
+ clean:
+ rm -f *.o clit
+
+ clit: clit.o hexdump.o drm5.o explode.o transmute.o display.o utils.o manifest.o ../lib/openclit.a
+- gcc -o clit $^ ../libtommath-0.30/libtommath.a
++ $(CC) $(LDFLAGS) -o clit $^ -ltommath
+
+Index: lib/Makefile +=================================================================== +--- a/lib/Makefile ++++ b/lib/Makefile +@@ -1,6 +1,6 @@ + all: openclit.a
+
+-CFLAGS=-O3 -Wall -Ides -Isha -Inewlzx -I.
++CFLAGS+=-Ides -Isha -Inewlzx -I.
+ clean:
+ rm -f *.o openclit.a des/*.o lzx/*.o sha/*.o
+
diff --git a/app-text/convertlit/files/convertlit-1.8-respectflags.patch b/app-text/convertlit/files/convertlit-1.8-respectflags.patch new file mode 100644 index 000000000000..06209ef62ada --- /dev/null +++ b/app-text/convertlit/files/convertlit-1.8-respectflags.patch @@ -0,0 +1,28 @@ +Index: clit18/Makefile +=================================================================== +--- clit18/Makefile.orig ++++ clit18/Makefile +@@ -1,9 +1,9 @@ + all: clit
+
+-CFLAGS=-funsigned-char -Wall -O2 -I ../libtommath-0.30/ -I ../lib -I ../lib/des -I .
++CFLAGS+=-funsigned-char -I ../lib -I ../lib/des -I .
+ clean:
+ rm -f *.o clit
+
+ clit: clit.o hexdump.o drm5.o explode.o transmute.o display.o utils.o manifest.o ../lib/openclit.a
+- gcc -o clit $^ ../libtommath-0.30/libtommath.a
++ $(CC) $(LDFLAGS) -o clit $^ -ltommath
+
+Index: lib/Makefile +=================================================================== +--- lib/Makefile.orig ++++ lib/Makefile +@@ -1,6 +1,6 @@ + all: openclit.a
+
+-CFLAGS=-O3 -Wall -Ides -Isha -Inewlzx -I.
++CFLAGS+=-Ides -Isha -Inewlzx -I.
+ clean:
+ rm -f *.o openclit.a des/*.o lzx/*.o sha/*.o
+
diff --git a/app-text/convertlit/files/fix-Wformat-security-warnings.patch b/app-text/convertlit/files/fix-Wformat-security-warnings.patch new file mode 100644 index 000000000000..78410a960f78 --- /dev/null +++ b/app-text/convertlit/files/fix-Wformat-security-warnings.patch @@ -0,0 +1,34 @@ +From 79ab07db8d91b6c6e0c36358c8030893c28510ba Mon Sep 17 00:00:00 2001 +From: Michael Orlitzky <michael@orlitzky.com> +Date: Tue, 2 Aug 2016 10:32:53 -0400 +Subject: [PATCH 1/1] clit.c: fix -Wformat-security warnings. + +Two uses of printf() in clit.c were triggering -Wformat-security +warnings due to a missing "%s" format string. This was causing +compilation to fail with -Werror=format-security, so they have +been fixed. + +Gentoo-Bug: 521246 +--- + clit18/clit.c | 4 ++-- + 1 file changed, 2 insertions(+), 2 deletions(-) + +diff --git a/clit18/clit.c b/clit18/clit.c +index c13a75d..48b749f 100644 +--- a/clit18/clit.c ++++ b/clit18/clit.c +@@ -125,9 +125,9 @@ int main(int argc, char ** argv) + dir_program[i+1] = '\0'; break;
+ }
+ }
+- printf(sTitle);
++ printf("%s", sTitle);
+ if (argc < 3) {
+- printf(sUsage);
++ printf("%s", sUsage);
+ return -1;
+ }
+ base = 1;
+-- +2.7.3 + diff --git a/app-text/convertlit/files/support-ar-variable.patch b/app-text/convertlit/files/support-ar-variable.patch new file mode 100644 index 000000000000..4bd3e822f31d --- /dev/null +++ b/app-text/convertlit/files/support-ar-variable.patch @@ -0,0 +1,11 @@ +diff --git a/lib/Makefile b/lib/Makefile +index 9104f27..0c8b197 100644 +--- a/lib/Makefile ++++ b/lib/Makefile +@@ -6,5 +6,5 @@ clean: +
+ openclit.a: litatom.o litdrm.o litlib.o litembiggen.o littags.o litmetatags.o litmanifest.o litdirectory.o litsections.o litheaders.o litutil.o sha/mssha1.o des/des.o newlzx/lzxglue.o newlzx/lzxd.o
+ -rm -f openclit.a
+- ar rv openclit.a $^
++ $(AR) rv openclit.a $^
+
diff --git a/app-text/convertlit/metadata.xml b/app-text/convertlit/metadata.xml new file mode 100644 index 000000000000..d566173e69a9 --- /dev/null +++ b/app-text/convertlit/metadata.xml @@ -0,0 +1,12 @@ +<?xml version="1.0" encoding="UTF-8"?> +<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd"> +<pkgmetadata> + <!-- maintainer-needed --> + <longdescription lang="en"> + Convert Lit is a simple program to use .lit or Microsoft ebook files on + Linux. It's able to "explode" the ebook into Open Ebook Specification + Format (OEBPS), which than can be read by Opera and other Linux programs + (it's just xml, html, png and jpeg). Note that you won't get any + DRM-bypassing, so your .lit-file must not be copy protected. + </longdescription> +</pkgmetadata> |