summaryrefslogtreecommitdiff
path: root/dev-libs/chmlib
diff options
context:
space:
mode:
Diffstat (limited to 'dev-libs/chmlib')
-rw-r--r--dev-libs/chmlib/Manifest7
-rw-r--r--dev-libs/chmlib/chmlib-0.40-r1.ebuild26
-rw-r--r--dev-libs/chmlib/files/chmlib-0.39-stdtypes.patch20
-rw-r--r--dev-libs/chmlib/files/chmlib-0.40-headers.patch18
-rw-r--r--dev-libs/chmlib/metadata.xml8
5 files changed, 79 insertions, 0 deletions
diff --git a/dev-libs/chmlib/Manifest b/dev-libs/chmlib/Manifest
new file mode 100644
index 000000000000..c796257aa537
--- /dev/null
+++ b/dev-libs/chmlib/Manifest
@@ -0,0 +1,7 @@
+AUX chmlib-0.39-stdtypes.patch 620 SHA256 1d1124f81c955dcf856013d37095c212a8ad858a1dce52bd07fecc736a0eb82e SHA512 afd879f78d4d532be3f3253a645b54588b0faff7445bc856b461ceba4ad0fb8d4d1fd9d1497675894cfb40c2174e21a8a2842a35e66deb6ab8adab6cbb996319 WHIRLPOOL 9f0a8e801d69cca8eb7a0fac086f994fc20a5c032831a91f225c1b18fb7be55e86aaa8485345c657ea77b7453b057aef12283ce58a3a3032f239f224bef685d9
+AUX chmlib-0.40-headers.patch 357 SHA256 60b67803466def393789c10daef789e0a54176aa1493d2e1e285730c60185683 SHA512 940d6b766ada58cbdad31a4748de1f5bcad83170d2b233397dee80f4bd92e13c0f3fa2a027b5834c8547018f67e12726cbd6a8de7540ca9b3d12fda45db02d1d WHIRLPOOL c8764206a0331cbdbd4f56a2f3f341063c1f86608a6acf7338a90ab8d32d669797db4e8809d0c2aed7f191ce5520866a159af7baa90a9200f5783ec066641eb8
+DIST chmlib-0.40.tar.bz2 252036 SHA256 3449d64b0cf71578b2c7e3ddc048d4af3661f44a83941ea074a7813f3a59ffa3 SHA512 3a3e151cf455b19e9e7c163a1d1e5ac52e8196f0b98f77932c72af58f3517824b9244667a18279ae754ccea784f6d6ab0c47465e74e3768ce98bb7dca0ca16e3 WHIRLPOOL db83f3e72e7e87d4d0502482e22fef2652f9f3b9b3878217a8f8f51201f2968badd7e5d92af7da3ecb504f0e71923cae7d84a1637039d22db138fd050762d6cf
+EBUILD chmlib-0.40-r1.ebuild 614 SHA256 869473983a7a09cda3b355ab62016772d61055dcdec3eac5fdf815373220e80e SHA512 15ea961cc15635e2aa208a3930b9b170e5f107645ee45ff56ccebaf2673ab2e8fdda40dcc8f861aaaa76bbbb1eb1892167cc23cbf937eec9be2f687a5f2142ae WHIRLPOOL b0d0e8cf625d7bcb874ade595a74af7c294fd89b19d6282c832898c0621528d96ebc67fa6320c7d6ebdf25a51c130de649986fa916cc43fc1b938653f8afa62a
+MISC ChangeLog 2248 SHA256 c230df6107de6d4e894012d52e64bf211ac709be1faac7ba80fe5aaf244e3d38 SHA512 b8f7e7b2ee3a3121b9b7527461cc20c758aaa8b753d37512e43635e95f1c47d918d884a70592cb4cfd639f2c302fd98f4f8cfe7d2face0c77edd643bd4ce68b5 WHIRLPOOL 1d02c69b822ffc9453329cd086a8953e294237c1fb36ed3e918dfc3a7d2ea7c333a80f1dfbd69cb90c91000980fe70a0b1baad6691e2e6c569be1afc175e2bfe
+MISC ChangeLog-2015 6274 SHA256 835c5416f925acaadaea98035db17de3122e258347b3fd6e1112f565d978eafa SHA512 45610a7c2118f68de920400901c893a56eebc119889372207037eed4d19406c0c1bdd31e0caaec17568e94bef6fbc4d90fae0843216bf7e724a1c3df65e4bce4 WHIRLPOOL 58c68876efa80a57333e57e68bb59c442481a2245f0fe9921c4081607af9dd1ee44d8204cefc4e084306765b92edc2a8b5becfdaab5041c6121a98ae97d6d518
+MISC metadata.xml 241 SHA256 67efc44b47d920c007b80545b0fb134270071e5ac61b7ed61b87c414d1b11154 SHA512 61925ba4f992d28d12c1c3168059072f1b826d4a54a061e3aeb8311143db068492b15136a730eb8f83249b2cce5a37ea72de187b510297bcab5092143fb6aa4a WHIRLPOOL d2b9e02f38d968f3be010e5816ab222e31385eab9ffad8d5dcb89106b5987deafabc22a8eb112fbcf0879e2dd7dc8b6678270d7249344d29c0a7e4cf558ecfc2
diff --git a/dev-libs/chmlib/chmlib-0.40-r1.ebuild b/dev-libs/chmlib/chmlib-0.40-r1.ebuild
new file mode 100644
index 000000000000..88496bdb5c54
--- /dev/null
+++ b/dev-libs/chmlib/chmlib-0.40-r1.ebuild
@@ -0,0 +1,26 @@
+# Copyright 1999-2014 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI="3"
+
+inherit autotools-utils
+
+DESCRIPTION="Library for MS CHM (compressed html) file format"
+HOMEPAGE="http://www.jedrea.com/chmlib/"
+SRC_URI="http://www.jedrea.com/${PN}/${P}.tar.bz2"
+
+LICENSE="LGPL-2.1"
+SLOT="0"
+KEYWORDS="alpha amd64 ~arm hppa ~ia64 ppc ppc64 x86"
+IUSE="+examples static-libs"
+
+DOCS=(AUTHORS NEWS README)
+PATCHES=(
+ "${FILESDIR}"/${PN}-0.39-stdtypes.patch
+ "${FILESDIR}"/${P}-headers.patch
+)
+
+src_configure() {
+ myeconfargs=($(use_enable examples))
+ autotools-utils_src_configure
+}
diff --git a/dev-libs/chmlib/files/chmlib-0.39-stdtypes.patch b/dev-libs/chmlib/files/chmlib-0.39-stdtypes.patch
new file mode 100644
index 000000000000..0f9232017689
--- /dev/null
+++ b/dev-libs/chmlib/files/chmlib-0.39-stdtypes.patch
@@ -0,0 +1,20 @@
+--- src/chm_lib.c
++++ src/chm_lib.c
+@@ -149,6 +149,17 @@ typedef unsigned __int32 UInt32;
+ typedef __int64 Int64;
+ typedef unsigned __int64 UInt64;
+
++/* Linux: use C standard types */
++#elif defined(__linux__)
++#include <stdint.h>
++typedef unsigned char UChar;
++typedef int16_t Int16;
++typedef uint16_t UInt16;
++typedef int32_t Int32;
++typedef uint32_t UInt32;
++typedef int64_t Int64;
++typedef uint64_t UInt64;
++
+ /* I386, 32-bit, non-Windows */
+ /* Sparc */
+ /* MIPS */
diff --git a/dev-libs/chmlib/files/chmlib-0.40-headers.patch b/dev-libs/chmlib/files/chmlib-0.40-headers.patch
new file mode 100644
index 000000000000..d60af28639fd
--- /dev/null
+++ b/dev-libs/chmlib/files/chmlib-0.40-headers.patch
@@ -0,0 +1,18 @@
+--- src/chm_http.c
++++ src/chm_http.c
+@@ -34,6 +34,7 @@
+ #include <stdio.h>
+ #include <stdlib.h>
+ #include <string.h>
++#include <unistd.h>
+ #if __sun || __sgi
+ #include <strings.h>
+ #endif
+@@ -42,6 +43,7 @@
+ #include <sys/socket.h>
+ #include <sys/types.h>
+ #include <netinet/in.h>
++#include <arpa/inet.h>
+
+ /* threading includes */
+ #include <pthread.h>
diff --git a/dev-libs/chmlib/metadata.xml b/dev-libs/chmlib/metadata.xml
new file mode 100644
index 000000000000..33cffc12a83c
--- /dev/null
+++ b/dev-libs/chmlib/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 type="person">
+ <email>rhill@gentoo.org</email>
+ <name>Ryan Hill</name>
+ </maintainer>
+</pkgmetadata>