From mboxrd@z Thu Jan 1 00:00:00 1970 Return-path: Received: from dude02.hi.pengutronix.de ([2001:67c:670:100:1d::28] helo=dude02.lab.pengutronix.de) by metis.ext.pengutronix.de with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1iZ8Q0-0000Ad-VV for ptxdist@pengutronix.de; Mon, 25 Nov 2019 08:04:20 +0100 Received: from mol by dude02.lab.pengutronix.de with local (Exim 4.92) (envelope-from ) id 1iZ8Q0-00064O-Ns for ptxdist@pengutronix.de; Mon, 25 Nov 2019 08:04:20 +0100 Date: Mon, 25 Nov 2019 08:04:20 +0100 From: Michael Olbrich Message-ID: <20191125070420.GG14948@pengutronix.de> References: <20191121091705.22416-1-guille.rodriguez@gmail.com> MIME-Version: 1.0 Content-Disposition: inline In-Reply-To: <20191121091705.22416-1-guille.rodriguez@gmail.com> Subject: Re: [ptxdist] [PATCH] python3-pycparser: New package List-Id: PTXdist Development Mailing List List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Reply-To: ptxdist@pengutronix.de Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable Errors-To: ptxdist-bounces@pengutronix.de Sender: "ptxdist" To: ptxdist@pengutronix.de On Thu, Nov 21, 2019 at 10:17:05AM +0100, Guillermo Rodr=EDguez wrote: > pycparser is a complete parser of the C language, written in pure > Python using the PLY parsing library. It parses C code into an AST > and can serve as a front-end for C compilers or analysis tools. > = > Guillermo Rodriguez > --- > rules/python3-pycparser.in | 10 +++++++ > rules/python3-pycparser.make | 54 ++++++++++++++++++++++++++++++++++++ > 2 files changed, 64 insertions(+) > create mode 100644 rules/python3-pycparser.in > create mode 100644 rules/python3-pycparser.make > = > diff --git a/rules/python3-pycparser.in b/rules/python3-pycparser.in > new file mode 100644 > index 000000000..07cd9960e > --- /dev/null > +++ b/rules/python3-pycparser.in > @@ -0,0 +1,10 @@ > +## SECTION=3Dpython3 > + > +config PYTHON3_PYCPARSER > + tristate > + select PYTHON3 > + prompt "python3-pycparser" > + help > + pycparser is a complete parser of the C language, written in pure > + Python using the PLY parsing library. It parses C code into an AST > + and can serve as a front-end for C compilers or analysis tools. > diff --git a/rules/python3-pycparser.make b/rules/python3-pycparser.make > new file mode 100644 > index 000000000..8ef168299 > --- /dev/null > +++ b/rules/python3-pycparser.make > @@ -0,0 +1,54 @@ > +# -*-makefile-*- > +# > +# Copyright (C) 2019 by Guillermo Rodriguez > +# > +# For further information about the PTXdist project and license conditio= ns > +# see the README file. > +# > + > +# > +# We provide this package > +# > +PACKAGES-$(PTXCONF_PYTHON3_PYCPARSER) +=3D python3-pycparser > + > +# > +# Paths and names > +# > +PYTHON3_PYCPARSER_VERSION :=3D 2.18 > +PYTHON3_PYCPARSER_MD5 :=3D 72370da54358202a60130e223d488136 > +PYTHON3_PYCPARSER :=3D pycparser-$(PYTHON3_PYCPARSER_VERSION) > +PYTHON3_PYCPARSER_SUFFIX :=3D tar.gz > +PYTHON3_PYCPARSER_URL :=3D https://pypi.python.org/packages/source/p/py= cparser/$(PYTHON3_PYCPARSER).$(PYTHON3_PYCPARSER_SUFFIX) > +PYTHON3_PYCPARSER_SOURCE :=3D $(SRCDIR)/$(PYTHON3_PYCPARSER).$(PYTHON3_P= YCPARSER_SUFFIX) > +PYTHON3_PYCPARSER_DIR :=3D $(BUILDDIR)/$(PYTHON3_PYCPARSER) > +PYTHON3_PYCPARSER_LICENSE :=3D BSD This is not an SPDX license identifier. Which BSD license is this supposed to be? Michael > +PYTHON3_PYCPARSER_LICENSE_FILES :=3D \ > + file://LICENSE;md5=3D86f1cedb4e6410a88ce8e30b91079169 > + > +# ----------------------------------------------------------------------= ------ > +# Prepare > +# ----------------------------------------------------------------------= ------ > + > +PYTHON3_PYCPARSER_CONF_TOOL :=3D python3 > + > +# ----------------------------------------------------------------------= ------ > +# Target-Install > +# ----------------------------------------------------------------------= ------ > + > +$(STATEDIR)/python3-pycparser.targetinstall: > + @$(call targetinfo) > + > + @$(call install_init, python3-pycparser) > + @$(call install_fixup, python3-pycparser, PRIORITY, optional) > + @$(call install_fixup, python3-pycparser, SECTION, base) > + @$(call install_fixup, python3-pycparser, AUTHOR, "Guillermo Rodriguez = ") > + @$(call install_fixup, python3-pycparser, DESCRIPTION, missing) > + > + @$(call install_glob, python3-pycparser, 0, 0, -, \ > + /usr/lib/python$(PYTHON3_MAJORMINOR)/site-packages/pycparser,, *.py) > + > + @$(call install_finish, python3-pycparser) > + > + @$(call touch) > + > +# vim: syntax=3Dmake > -- = > 2.21.0 > = > = > _______________________________________________ > ptxdist mailing list > ptxdist@pengutronix.de > = -- = Pengutronix e.K. | | Steuerwalder Str. 21 | http://www.pengutronix.de/ | 31137 Hildesheim, Germany | Phone: +49-5121-206917-0 | Amtsgericht Hildesheim, HRA 2686 | Fax: +49-5121-206917-5555 | _______________________________________________ ptxdist mailing list ptxdist@pengutronix.de