Skip to content

Commit

Permalink
dev-libs/cJSON: Add new package
Browse files Browse the repository at this point in the history
Signed-off-by: Matt Turner <[email protected]>
  • Loading branch information
mattst88 committed Apr 9, 2021
1 parent f2b86c1 commit 42d26ac
Show file tree
Hide file tree
Showing 3 changed files with 35 additions and 0 deletions.
1 change: 1 addition & 0 deletions dev-libs/cJSON/Manifest
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
DIST cJSON-1.7.14.tar.gz 352028 BLAKE2B 203795f004496793fb04577df1e4a917df2424bf7866e32459584d3dc776ee13263c5e62ded01e3776973d2210e642d1066d3126e2c737bd0fa048464f3aed84 SHA512 8de1dedc123ed025a9cbe6764e5963eb0550f726d06a8f6bedfe05b84e852cd9c1587cd381669663073967f42be894a535ba239013f304ce544c3b15a6477c01
23 changes: 23 additions & 0 deletions dev-libs/cJSON/cJSON-1.7.14.ebuild
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
# Copyright 2020 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2

EAPI=7

inherit cmake

DESCRIPTION=" Ultralightweight JSON parser in ANSI C"
HOMEPAGE="https://github.com/DaveGamble/cJSON"
SRC_URI="https://github.com/DaveGamble/${PN}/archive/v${PV}.tar.gz -> ${P}.tar.gz"

LICENSE="MIT"
SLOT="0"
KEYWORDS="~amd64"
IUSE="test"

src_configure() {
local mycmakeargs=(
-DENABLE_CJSON_TEST=$(usex test)
)

cmake_src_configure
}
11 changes: 11 additions & 0 deletions dev-libs/cJSON/metadata.xml
Original file line number Diff line number Diff line change
@@ -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>[email protected]</email>
<name>Matt Turner</name>
</maintainer>
<upstream>
<remote-id type="github">DaveGamble/cJSON</remote-id>
</upstream>
</pkgmetadata>

0 comments on commit 42d26ac

Please sign in to comment.