summaryrefslogtreecommitdiff
path: root/dev-libs/libmoe
diff options
context:
space:
mode:
authorV3n3RiX <venerix@redcorelinux.org>2017-10-09 18:53:29 +0100
committerV3n3RiX <venerix@redcorelinux.org>2017-10-09 18:53:29 +0100
commit4f2d7949f03e1c198bc888f2d05f421d35c57e21 (patch)
treeba5f07bf3f9d22d82e54a462313f5d244036c768 /dev-libs/libmoe
reinit the tree, so we can have metadata
Diffstat (limited to 'dev-libs/libmoe')
-rw-r--r--dev-libs/libmoe/Manifest8
-rw-r--r--dev-libs/libmoe/files/libmoe-1.5.8-gcc5.patch61
-rw-r--r--dev-libs/libmoe/files/libmoe-1.5.8-gentoo.patch9
-rw-r--r--dev-libs/libmoe/files/libmoe-1.5.8-makefile.patch23
-rw-r--r--dev-libs/libmoe/libmoe-1.5.8-r3.ebuild39
-rw-r--r--dev-libs/libmoe/metadata.xml8
6 files changed, 148 insertions, 0 deletions
diff --git a/dev-libs/libmoe/Manifest b/dev-libs/libmoe/Manifest
new file mode 100644
index 000000000000..e01de8bbc2e2
--- /dev/null
+++ b/dev-libs/libmoe/Manifest
@@ -0,0 +1,8 @@
+AUX libmoe-1.5.8-gcc5.patch 1778 SHA256 f085d8f933c56e9f20b07d62ef66dd9eaa3114859843f1bdf2682decaf8d21b0 SHA512 f4eff3250af69aa6751ac953047ef23275e7d5f39c4b850f4f7637e17c8cbe85c7146c3aa7412bbdc089ae787b2a49c72b0afc321bef523efd27bbf1784ff447 WHIRLPOOL 51bf7524389d202704d4a842af11ea257bee4dd297a151d1ba151298a66b3567ddfebd798501927d49cbf9604b9bea1e53c51ebf838b58a22fa2d96a14e171b9
+AUX libmoe-1.5.8-gentoo.patch 304 SHA256 eb4f855dc3cc84638cabd9dfc38152861b21710c78353ccc311d8d203f2a8450 SHA512 59e598ba12f907306a57ab22ddae823b882f9ee5407c5bcf1115ea477c1c98783807de7a35620c38af9defdf14d76a34897bc95d605739de276b3f146ace847d WHIRLPOOL 266aea2d148c82fc79d2d7687a59f1d3ee1e4edc566022e0f964d31d3cd678563536769cba70645550dd4bbbe802addca8b2f4f6d483cb4186e6465a5cb5be23
+AUX libmoe-1.5.8-makefile.patch 625 SHA256 5219f0fb1cc55659c28b20708677260d4d79d3fcb50447f2f3cf0731feb5f6f3 SHA512 fa3a785363c4993b3b83bd94c624a2e6b8dababbccd6b2e522e0184d8d0563444c94cb1a67a155d45303081c1da234beeeded36382e582ee407eeceb7a3c630b WHIRLPOOL 27ddeebf7f139a6262eba7dae47aec7fc6499f7a0ae4ac0f61f4a1fa3bf26a8ebd8b466d6241f9235859a16d5bac4b36c156bca1ac7de9a7bba1141cb4e94a32
+DIST libmoe-1.5.8.tar.gz 1559398 SHA256 6a379a7bbd234783a323b85ba8782360391942530290805e37e02e02e656eeb7 SHA512 937e7e0f1d562c5ea1f93ec755d6125f389cffaa2989b4ec4c1c1b42fab927f1884e1dab2c65e1487f4d9fdb0f9ed306a7d32e13e8b24302837a9e7b5634449b WHIRLPOOL 2e514ff03dccc0528b3dd8877dde68397143e49ca83fa3b56a80992482ee1750e044a5c6170819dc3a2547b081822f5c3c78d00ba251964434d92c17b006910f
+EBUILD libmoe-1.5.8-r3.ebuild 922 SHA256 e13b8a33dbb582d989ed1668eac56d95df3cb242225bc13f418ddde14b769433 SHA512 c3d4bceaeecf18285cd473ff67200a8a7395ec3a4f2c8da984c99c6b86d7df5f8dd9dc5b829cc19a0b3082eab2f383fee01d625c0c42c208f500748046ccf36f WHIRLPOOL 63d897c220cfcaabda23ca3da8e93d7bcb7c15703bbec68ad8cf91c88824a188be99147efef10e7eeca47f8f0e0fe39b905e5ea371b7510711fcf43aa7f563b2
+MISC ChangeLog 2777 SHA256 04480f8c37f8b1214496a4ea50244c7b2eca141cb34db6f73b30c418d4472872 SHA512 10fa366e8e760eefacdac4eeee0e9cc6697ef7184d63343a479e0e8f0c3cd02ae3f787bec91e86579a719a2883dcaec11e92e9ca05521ed58822859b453dd130 WHIRLPOOL b3a7d9c9e75ad6db463026d8f7d42aef85e2725630b78fafb497e4010d3f906ff0f391542c8b72019812aab09799225c69069f17151f3ec4c8df11c3f74e8211
+MISC ChangeLog-2015 3289 SHA256 6253c95f932922e0cea85d22d0cc415c397f34a5c646a07e54001223f7940edd SHA512 cb03ea1580f92f4b95aa30df16e024a6ea43eec75e06df6ec655637696a59fd2390dc17381a4861430cce783cdbfa51ab9359f4c575c148a74aaaa06e5eb61af WHIRLPOOL 61893209ddc4b992cfdcd7bcff9fe62c8f282c8ff0b322c4229c23b6f040e97a09942727ed2a2e7d15d34cf6aa7921b0cc70dc1920689f51dc11d171d2cd9b5b
+MISC metadata.xml 230 SHA256 5fc421627b578ee2d1317320525119c0b406026597bb1d054f96254a241bf96a SHA512 74065bee639a38ecdef7c32280ed43a8f1627362cd8e97e714a09bcf116ae8bc4c61b2ab13c31bd02a22ae8a5a201263981ee519a0b6ba9df81a4d5f3cd94eb1 WHIRLPOOL b3c1363540645200abd5bf0b5b7fb3cae0b738bfd359f7b13b56d97650f9381fccede1e3f867dbc736461ee7c7906725a3c53eabd9ac99929d5c7c520a831082
diff --git a/dev-libs/libmoe/files/libmoe-1.5.8-gcc5.patch b/dev-libs/libmoe/files/libmoe-1.5.8-gcc5.patch
new file mode 100644
index 000000000000..a990a37fe240
--- /dev/null
+++ b/dev-libs/libmoe/files/libmoe-1.5.8-gcc5.patch
@@ -0,0 +1,61 @@
+diff -urN b/iso2mb.c c/iso2mb.c
+--- b/iso2mb.c 2015-07-06 21:38:49.129658661 +0000
++++ c/iso2mb.c 2015-07-07 18:50:17.211540572 +0000
+@@ -513,11 +513,11 @@
+ return wc;
+ }
+
+-mb_wchar_t
++__attribute__ ((gnu_inline)) __inline__ mb_wchar_t
+ mb_encode_to_wchar(mb_info_t *info)
+ MB_ENCODE_TO_WCHAR
+
+-mb_wchar_t
++__attribute__ ((gnu_inline)) __inline__ mb_wchar_t
+ mb_fetch_wchar(mb_info_t *info)
+ MB_FETCH_WCHAR
+
+diff -urN b/mb2iso.c c/mb2iso.c
+--- b/mb2iso.c 2015-07-06 21:38:49.133658683 +0000
++++ c/mb2iso.c 2015-07-07 19:07:47.583244156 +0000
+@@ -900,7 +900,7 @@
+ return n;
+ }
+
+-size_t
++__attribute__ ((gnu_inline)) __inline__ size_t
+ mb_store_wchar(mb_wchar_t enc, mb_info_t *info)
+ MB_STORE_WCHAR
+
+diff -urN b/mb.h c/mb.h
+--- b/mb.h 2015-07-06 21:38:49.133658683 +0000
++++ c/mb.h 2015-07-07 18:50:17.211540572 +0000
+@@ -434,7 +434,7 @@
+ }
+
+ #ifdef __GNUC__
+-extern __inline__ mb_wchar_t mb_encode_to_wchar(mb_info_t *info) MB_ENCODE_TO_WCHAR
++extern __attribute__ ((gnu_inline)) __inline__ mb_wchar_t mb_encode_to_wchar(mb_info_t *info);
+ #else
+ extern mb_wchar_t mb_encode_to_wchar(mb_info_t *info);
+ #endif
+@@ -449,7 +449,7 @@
+ }
+
+ #ifdef __GNUC__
+-extern __inline__ mb_wchar_t mb_fetch_wchar(mb_info_t *info) MB_FETCH_WCHAR
++extern __attribute__ ((gnu_inline)) __inline__ mb_wchar_t mb_fetch_wchar(mb_info_t *info);
+ #else
+ extern mb_wchar_t mb_fetch_wchar(mb_info_t *info);
+ #endif
+@@ -552,7 +552,7 @@
+ }
+
+ #ifdef __GNUC__
+-extern __inline__ size_t mb_store_wchar(mb_wchar_t enc, mb_info_t *info) MB_STORE_WCHAR
++extern __attribute__ ((gnu_inline)) __inline__ size_t mb_store_wchar(mb_wchar_t enc, mb_info_t *info);
+ #else
+ extern size_t mb_store_wchar(mb_wchar_t enc, mb_info_t *info);
+ #endif
+
+
diff --git a/dev-libs/libmoe/files/libmoe-1.5.8-gentoo.patch b/dev-libs/libmoe/files/libmoe-1.5.8-gentoo.patch
new file mode 100644
index 000000000000..cf436c11577b
--- /dev/null
+++ b/dev-libs/libmoe/files/libmoe-1.5.8-gentoo.patch
@@ -0,0 +1,9 @@
+diff -Naur libmoe-1.5.8.orig/altmalloc.c libmoe-1.5.8/altmalloc.c
+--- libmoe-1.5.8.orig/altmalloc.c 2002-02-01 22:25:10.000000000 +0900
++++ libmoe-1.5.8/altmalloc.c 2008-11-19 08:44:34.000000000 +0900
+@@ -1,3 +1,5 @@
++#include <string.h>
++
+ #include "altmalloc.h"
+
+ alt_allocater_t alt_malloc = malloc;
diff --git a/dev-libs/libmoe/files/libmoe-1.5.8-makefile.patch b/dev-libs/libmoe/files/libmoe-1.5.8-makefile.patch
new file mode 100644
index 000000000000..2cdfa1a24c22
--- /dev/null
+++ b/dev-libs/libmoe/files/libmoe-1.5.8-makefile.patch
@@ -0,0 +1,23 @@
+diff --git a/Makefile b/Makefile
+index 1bae380..605d674 100644
+--- a/Makefile
++++ b/Makefile
+@@ -72,8 +72,7 @@ AR=ar
+ all: ${INSTLIBA} mbconv mbconv.man
+
+ mbconv: mbconv.c ${ALL}
+- ${CC} ${CF} -o $@ $< -L. -lmoe
+-
++ ${CC} ${CF} ${LDFLAGS} -o $@ $< -L. -lmoe
+
+ ${DEST}.so: ${DEST}.so.${VER}.${RELEASE}
+ ln -sf $< $@
+@@ -116,7 +115,7 @@ ${BTRI_Cs}: %.c: %.mk_btri.c mk_btri
+ ./mk_btri <$< >$@-new && mv $@-new $@
+
+ mk_btri: btri.c btri.h altmalloc.o
+- ${CC} ${CF} -DMAIN -o $@ $< altmalloc.o
++ ${CC} ${CF} ${LDFLAGS} -DMAIN -o $@ $< altmalloc.o
+
+ mbconv.man: mbconv.pod
+ pod2man --section=${MANSECT} --center=' ' $< >$@
diff --git a/dev-libs/libmoe/libmoe-1.5.8-r3.ebuild b/dev-libs/libmoe/libmoe-1.5.8-r3.ebuild
new file mode 100644
index 000000000000..01e7722e7012
--- /dev/null
+++ b/dev-libs/libmoe/libmoe-1.5.8-r3.ebuild
@@ -0,0 +1,39 @@
+# Copyright 1999-2017 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=6
+
+inherit toolchain-funcs
+
+DESCRIPTION="Multi octet character encoding handling library"
+HOMEPAGE="http://pub.ks-and-ks.ne.jp/prog/libmoe/"
+SRC_URI="http://pub.ks-and-ks.ne.jp/prog/pub/${P}.tar.gz"
+
+LICENSE="public-domain"
+SLOT="0"
+KEYWORDS="amd64 ppc sparc x86"
+IUSE=""
+
+RDEPEND="dev-lang/perl"
+DEPEND="${RDEPEND}"
+
+HTML_DOCS=( libmoe.shtml )
+PATCHES=(
+ "${FILESDIR}/${P}-gentoo.patch"
+ "${FILESDIR}/${P}-makefile.patch"
+ "${FILESDIR}/${P}-gcc5.patch" # taken from Debian
+)
+
+src_prepare() {
+ default
+
+ sed -i \
+ -e "/^PREFIX=/s:=.*:=${EPREFIX}/usr:" \
+ -e "/^LIBSODIR=/s:=.*:=\$\{PREFIX}/$(get_libdir):" \
+ -e "/^MANDIR=/s:=.*:=\$\{PREFIX}/share/man:" \
+ -e "/^CF=/s:=:=${CFLAGS} :" \
+ -e "/^LF=/s:=:=${LDFLAGS} :" \
+ -e "s:=gcc:=$(tc-getCC):" \
+ -e "/^AR=/s:=ar:=$(tc-getAR):" \
+ Makefile || die
+}
diff --git a/dev-libs/libmoe/metadata.xml b/dev-libs/libmoe/metadata.xml
new file mode 100644
index 000000000000..c921b96adf6c
--- /dev/null
+++ b/dev-libs/libmoe/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="project">
+ <email>cjk@gentoo.org</email>
+ <name>Cjk</name>
+</maintainer>
+</pkgmetadata>