mirror of
https://github.com/gentoo-mirror/guru.git
synced 2026-07-11 08:03:16 -04:00
dev-R/selectr: new package, add 0.4.2
Signed-off-by: Robert Greener <me@r0bert.dev>
This commit is contained in:
1
dev-R/selectr/Manifest
Normal file
1
dev-R/selectr/Manifest
Normal file
@@ -0,0 +1 @@
|
||||
DIST selectr_0.4-2.tar.gz 41371 BLAKE2B 841da5e0d575612e994f1d578686814587d5b582352f13a23fc63c7a1664917245a990972f9976608aba5145b436a69daec7294f0a20d04f2182a02f790b6bd3 SHA512 4f142e644a206a4a24a7bdffd04acaf4deb34b8e7cc9104b24de20b8bffbefcc424d223df25af5792430fcef051364423b903f385353ba4269bdc1886bf30c1b
|
||||
17
dev-R/selectr/metadata.xml
Normal file
17
dev-R/selectr/metadata.xml
Normal file
@@ -0,0 +1,17 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
|
||||
<pkgmetadata>
|
||||
<maintainer type="person">
|
||||
<email>me@r0bert.dev</email>
|
||||
<name>Robert Greener</name>
|
||||
</maintainer>
|
||||
<longdescription lang="en">Translates a CSS3 selector into an equivalent XPath expression. This allows us to use CSS selectors when working with the XML package as it can only evaluate XPath expressions. Also provided are convenience functions useful for using CSS selectors on XML nodes. This package is a port of the Python package 'cssselect' (<https://cssselect.readthedocs.io/>).</longdescription>
|
||||
<upstream>
|
||||
<maintainer>
|
||||
<name>Simon Potter</name>
|
||||
<email>simon@sjp.co.nz</email>
|
||||
</maintainer>
|
||||
<bugs-to>https://github.com/sjp/selectr/issues</bugs-to>
|
||||
<remote-id type="github">sjp/selectr</remote-id>
|
||||
</upstream>
|
||||
</pkgmetadata>
|
||||
36
dev-R/selectr/selectr-0.4.2.ebuild
Normal file
36
dev-R/selectr/selectr-0.4.2.ebuild
Normal file
@@ -0,0 +1,36 @@
|
||||
# Copyright 1999-2022 Gentoo Authors
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
|
||||
EAPI=7
|
||||
|
||||
inherit R-packages edo
|
||||
|
||||
DESCRIPTION='Translate CSS Selectors to XPath Expressions'
|
||||
KEYWORDS="~amd64"
|
||||
LICENSE='BSD'
|
||||
RESTRICT="!test? ( test )"
|
||||
IUSE="test"
|
||||
CRAN_PV="0.4-2"
|
||||
|
||||
DEPEND="
|
||||
dev-R/stringr
|
||||
dev-R/R6
|
||||
test? (
|
||||
dev-R/testthat
|
||||
dev-R/XML
|
||||
dev-R/xml2
|
||||
)
|
||||
"
|
||||
|
||||
SUGGESTED_PACKAGES="
|
||||
dev-R/testthat
|
||||
dev-R/XML
|
||||
dev-R/xml2
|
||||
"
|
||||
|
||||
src_test() {
|
||||
cd "${WORKDIR}/${P}/tests"
|
||||
NOT_CRAN=true R_LIBS="${T}/R" edo Rscript --vanilla test-all.R
|
||||
}
|
||||
|
||||
SRC_URI="mirror://cran/src/contrib/${PN}_${CRAN_PV}.tar.gz"
|
||||
Reference in New Issue
Block a user