Gentoo Archives: gentoo-commits

From: Conrad Kostecki <conikost@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/gentoo:master commit in: dev-libs/libmpack/
Date: Sun, 29 Nov 2020 18:49:39
Message-Id: 1606675703.812e799438544560111c81fb6abfd1f0b80857f9.conikost@gentoo
1 commit: 812e799438544560111c81fb6abfd1f0b80857f9
2 Author: Conrad Kostecki <conikost <AT> gentoo <DOT> org>
3 AuthorDate: Sun Nov 29 18:31:57 2020 +0000
4 Commit: Conrad Kostecki <conikost <AT> gentoo <DOT> org>
5 CommitDate: Sun Nov 29 18:48:23 2020 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=812e7994
7
8 dev-libs/libmpack: new package
9
10 This is the mpack C lib, which will be needed for a newer lua mpack
11 module version.
12
13 Package-Manager: Portage-3.0.9, Repoman-3.0.2
14 Signed-off-by: Conrad Kostecki <conikost <AT> gentoo.org>
15
16 dev-libs/libmpack/Manifest | 1 +
17 dev-libs/libmpack/libmpack-1.0.5.ebuild | 52 +++++++++++++++++++++++++++++++++
18 dev-libs/libmpack/metadata.xml | 11 +++++++
19 3 files changed, 64 insertions(+)
20
21 diff --git a/dev-libs/libmpack/Manifest b/dev-libs/libmpack/Manifest
22 new file mode 100644
23 index 00000000000..f158170965e
24 --- /dev/null
25 +++ b/dev-libs/libmpack/Manifest
26 @@ -0,0 +1 @@
27 +DIST libmpack-1.0.5.tar.gz 32966 BLAKE2B 8ad01de11c740c3efc7b42046b89f7691dd32d228e126485bc49224e54789e7f12a611982c0fd9d2bbe8b06d1ce2df1ceea1b302e139e30d0a8c31f251129166 SHA512 6e30edafcacfb580b410bc6749ed7fe8f18b3be0cb98959339853e77bc3ec0cda6df08a0f1f22768cfc773458a2ea6bcef4f0421eea55cf56c58981d13711a04
28
29 diff --git a/dev-libs/libmpack/libmpack-1.0.5.ebuild b/dev-libs/libmpack/libmpack-1.0.5.ebuild
30 new file mode 100644
31 index 00000000000..479c92bd7b2
32 --- /dev/null
33 +++ b/dev-libs/libmpack/libmpack-1.0.5.ebuild
34 @@ -0,0 +1,52 @@
35 +# Copyright 1999-2020 Gentoo Authors
36 +# Distributed under the terms of the GNU General Public License v2
37 +
38 +EAPI=7
39 +
40 +inherit toolchain-funcs
41 +
42 +DESCRIPTION="Simple implementation of msgpack in C"
43 +HOMEPAGE="https://github.com/libmpack/libmpack"
44 +SRC_URI="https://github.com/${PN}/${PN}/archive/${PV}.tar.gz -> ${P}.tar.gz"
45 +
46 +LICENSE="MIT"
47 +SLOT="0"
48 +KEYWORDS="~amd64 ~arm ~arm64 ~x86"
49 +
50 +DEPEND=""
51 +RDEPEND="${DEPEND}"
52 +BDEPEND=""
53 +
54 +src_prepare() {
55 + default
56 +
57 + # Make compiling verbose
58 + sed -e 's/@$(LIBTOOL)/$(LIBTOOL)/g' -i Makefile || die
59 +
60 + # Respect users CFLAGS
61 + sed -e 's/-ggdb//g' -i Makefile || die
62 + sed -e 's/-O3//g' -i .config/release.mk || die
63 +}
64 +
65 +src_compile() {
66 + local myemakeargs=(
67 + "CC=$(tc-getCC)"
68 + "config=release"
69 + "LIBDIR=/usr/$(get_libdir)"
70 + )
71 +
72 + emake "${myemakeargs[@]}" lib-bin
73 +}
74 +
75 +src_install() {
76 + local myemakeargs=(
77 + "PREFIX=/usr"
78 + "DESTDIR=${ED}"
79 + "LIBDIR=/usr/$(get_libdir)"
80 + "XLDFLAGS=-shared"
81 + )
82 +
83 + emake "${myemakeargs[@]}" install
84 +
85 + find "${ED}" -name '*.la' -delete || die
86 +}
87
88 diff --git a/dev-libs/libmpack/metadata.xml b/dev-libs/libmpack/metadata.xml
89 new file mode 100644
90 index 00000000000..def85419cfb
91 --- /dev/null
92 +++ b/dev-libs/libmpack/metadata.xml
93 @@ -0,0 +1,11 @@
94 +<?xml version="1.0" encoding="UTF-8"?>
95 +<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
96 +<pkgmetadata>
97 + <maintainer type="person">
98 + <email>conikost@g.o</email>
99 + <name>Conrad Kostecki</name>
100 + </maintainer>
101 + <upstream>
102 + <remote-id type="github">libmpack/libmpack</remote-id>
103 + </upstream>
104 +</pkgmetadata>