Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 356719 - new ebuild dev-libs/libjsonspirit
Summary: new ebuild dev-libs/libjsonspirit
Status: CONFIRMED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: New packages (show other bugs)
Hardware: All Linux
: High normal (vote)
Assignee: Default Assignee for New Packages
URL:
Whiteboard:
Keywords: EBUILD
Depends on:
Blocks:
 
Reported: 2011-02-27 17:28 UTC by Karim DRIDI
Modified: 2011-02-28 17:16 UTC (History)
1 user (show)

See Also:
Package list:
Runtime testing required: ---


Attachments
dev-libs/libjsonspirit-4.04 (libjsonspirit-4.04.ebuild,777 bytes, text/plain)
2011-02-27 17:29 UTC, Karim DRIDI
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Karim DRIDI 2011-02-27 17:28:35 UTC
Here is a proposal for the JSON Spirit library (http://www.codeproject.com/KB/recipes/JSON_Spirit.aspx)

Reproducible: Always

Steps to Reproduce:
EAPI="3"
PYTHON_DEPEND="python? 2"

inherit eutils cmake-utils

MY_PV=${PV/_p*}
MY_P=${PN}-${MY_PV}
PLEVEL=${PV/*p}
DESCRIPTION="A C++ JSON Parser/Generator Implemented with Boost Spirit"
HOMEPAGE="http://www.codeproject.com/KB/recipes/JSON_Spirit.aspx"
SRC_URI="http://www.codeproject.com/KB/recipes/JSON_Spirit/json_spirit_v4_04.zip"

LICENSE="MIT"
SLOT="0"
KEYWORDS="~ppc-aix ~x64-freebsd ~x86-freebsd ~hppa-hpux ~ia64-hpux ~x86-interix ~amd64-linux ~ia64-linux ~x86-linux ~ppc-macos ~x64-macos ~x86-macos ~m68k-mint ~sparc-solaris ~sparc64-solaris ~x6$
IUSE=""

RDEPEND=""
DEPEND="${RDEPEND}
        >=dev-libs/boost-1.40.0
        >=dev-util/cmake-2.8.1-r2"

S=${WORKDIR}

src_configure() {
        cmake-utils_src_configure
}

src_install() {
        cmake-utils_src_install
}
Comment 1 Karim DRIDI 2011-02-27 17:29:38 UTC
Created attachment 264075 [details]
dev-libs/libjsonspirit-4.04
Comment 2 Jorge Manuel B. S. Vicetto (RETIRED) Gentoo Infrastructure gentoo-dev 2011-02-28 17:16:56 UTC
(In reply to comment #0)

> EAPI="3"
> PYTHON_DEPEND="python? 2"
> 
> inherit eutils cmake-utils

inherit cmake-utils eutils

(it's a preference issue, but I find it better to list everything in alphabetical order)

> MY_PV=${PV/_p*}
> MY_P=${PN}-${MY_PV}

MY_PN=JSON_Spirit

> PLEVEL=${PV/*p}
> DESCRIPTION="A C++ JSON Parser/Generator Implemented with Boost Spirit"
> HOMEPAGE="http://www.codeproject.com/KB/recipes/JSON_Spirit.aspx"
> SRC_URI="http://www.codeproject.com/KB/recipes/JSON_Spirit
/json_spirit_v4_04.zip"

SRC_URI="http://www.codeproject.com/KB/recipes/${MY_PN}/${PN}_v${PV}.zip"

> LICENSE="MIT"
> SLOT="0"
> KEYWORDS="~ppc-aix ~x64-freebsd ~x86-freebsd ~hppa-hpux ~ia64-hpux ~x86-interix
> ~amd64-linux ~ia64-linux ~x86-linux ~ppc-macos ~x64-macos ~x86-macos ~m68k-mint
> ~sparc-solaris ~sparc64-solaris ~x86

Have you tested this ebuild in all these arches? You should only add arches you've tested it on.

> IUSE=""
> 
> RDEPEND=""
> DEPEND="${RDEPEND}
>         >=dev-libs/boost-1.40.0
>         >=dev-util/cmake-2.8.1-r2"
> 
> S=${WORKDIR}
> 
> src_configure() {
>         cmake-utils_src_configure
> }
> 
> src_install() {
>         cmake-utils_src_install
> }

This assumes the ebuild is named json-spirit-4.0.4.ebuild.