mailarchive of the ptxdist mailing list
 help / color / mirror / Atom feed
* [ptxdist] [PATCH] python3-pycparser: New package
@ 2019-11-21  9:17 Guillermo Rodríguez
  2019-11-25  7:04 ` Michael Olbrich
  0 siblings, 1 reply; 4+ messages in thread
From: Guillermo Rodríguez @ 2019-11-21  9:17 UTC (permalink / raw)
  To: ptxdist; +Cc: Guillermo Rodríguez

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 <guille.rodriguez@gmail.com>
---
 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=python3
+
+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 <guille.rodriguez@gmail.com>
+#
+# For further information about the PTXdist project and license conditions
+# see the README file.
+#
+
+#
+# We provide this package
+#
+PACKAGES-$(PTXCONF_PYTHON3_PYCPARSER) += python3-pycparser
+
+#
+# Paths and names
+#
+PYTHON3_PYCPARSER_VERSION	:= 2.18
+PYTHON3_PYCPARSER_MD5		:= 72370da54358202a60130e223d488136
+PYTHON3_PYCPARSER		:= pycparser-$(PYTHON3_PYCPARSER_VERSION)
+PYTHON3_PYCPARSER_SUFFIX	:= tar.gz
+PYTHON3_PYCPARSER_URL		:= https://pypi.python.org/packages/source/p/pycparser/$(PYTHON3_PYCPARSER).$(PYTHON3_PYCPARSER_SUFFIX)
+PYTHON3_PYCPARSER_SOURCE	:= $(SRCDIR)/$(PYTHON3_PYCPARSER).$(PYTHON3_PYCPARSER_SUFFIX)
+PYTHON3_PYCPARSER_DIR		:= $(BUILDDIR)/$(PYTHON3_PYCPARSER)
+PYTHON3_PYCPARSER_LICENSE	:= BSD
+PYTHON3_PYCPARSER_LICENSE_FILES := \
+	file://LICENSE;md5=86f1cedb4e6410a88ce8e30b91079169
+
+# ----------------------------------------------------------------------------
+# Prepare
+# ----------------------------------------------------------------------------
+
+PYTHON3_PYCPARSER_CONF_TOOL	:= 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 <guille.rodriguez@gmail.com>")
+	@$(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=make
-- 
2.21.0


_______________________________________________
ptxdist mailing list
ptxdist@pengutronix.de

^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: [ptxdist] [PATCH] python3-pycparser: New package
  2019-11-21  9:17 [ptxdist] [PATCH] python3-pycparser: New package Guillermo Rodríguez
@ 2019-11-25  7:04 ` Michael Olbrich
  2019-11-25  9:57   ` Guillermo Rodriguez Garcia
  0 siblings, 1 reply; 4+ messages in thread
From: Michael Olbrich @ 2019-11-25  7:04 UTC (permalink / raw)
  To: ptxdist

On Thu, Nov 21, 2019 at 10:17:05AM +0100, Guillermo Rodríguez 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 <guille.rodriguez@gmail.com>
> ---
>  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=python3
> +
> +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 <guille.rodriguez@gmail.com>
> +#
> +# For further information about the PTXdist project and license conditions
> +# see the README file.
> +#
> +
> +#
> +# We provide this package
> +#
> +PACKAGES-$(PTXCONF_PYTHON3_PYCPARSER) += python3-pycparser
> +
> +#
> +# Paths and names
> +#
> +PYTHON3_PYCPARSER_VERSION	:= 2.18
> +PYTHON3_PYCPARSER_MD5		:= 72370da54358202a60130e223d488136
> +PYTHON3_PYCPARSER		:= pycparser-$(PYTHON3_PYCPARSER_VERSION)
> +PYTHON3_PYCPARSER_SUFFIX	:= tar.gz
> +PYTHON3_PYCPARSER_URL		:= https://pypi.python.org/packages/source/p/pycparser/$(PYTHON3_PYCPARSER).$(PYTHON3_PYCPARSER_SUFFIX)
> +PYTHON3_PYCPARSER_SOURCE	:= $(SRCDIR)/$(PYTHON3_PYCPARSER).$(PYTHON3_PYCPARSER_SUFFIX)
> +PYTHON3_PYCPARSER_DIR		:= $(BUILDDIR)/$(PYTHON3_PYCPARSER)
> +PYTHON3_PYCPARSER_LICENSE	:= BSD

This is not an SPDX license identifier. Which BSD license is this supposed
to be?

Michael

> +PYTHON3_PYCPARSER_LICENSE_FILES := \
> +	file://LICENSE;md5=86f1cedb4e6410a88ce8e30b91079169
> +
> +# ----------------------------------------------------------------------------
> +# Prepare
> +# ----------------------------------------------------------------------------
> +
> +PYTHON3_PYCPARSER_CONF_TOOL	:= 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 <guille.rodriguez@gmail.com>")
> +	@$(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=make
> -- 
> 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

^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: [ptxdist] [PATCH] python3-pycparser: New package
  2019-11-25  7:04 ` Michael Olbrich
@ 2019-11-25  9:57   ` Guillermo Rodriguez Garcia
  2019-11-26  7:08     ` Michael Olbrich
  0 siblings, 1 reply; 4+ messages in thread
From: Guillermo Rodriguez Garcia @ 2019-11-25  9:57 UTC (permalink / raw)
  To: ptxdist

Hi Michael,

El lun., 25 nov. 2019 a las 8:04, Michael Olbrich
(<m.olbrich@pengutronix.de>) escribió:
>
> On Thu, Nov 21, 2019 at 10:17:05AM +0100, Guillermo Rodríguez 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 <guille.rodriguez@gmail.com>
> > ---
> >  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=python3
> > +
> > +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 <guille.rodriguez@gmail.com>
> > +#
> > +# For further information about the PTXdist project and license conditions
> > +# see the README file.
> > +#
> > +
> > +#
> > +# We provide this package
> > +#
> > +PACKAGES-$(PTXCONF_PYTHON3_PYCPARSER) += python3-pycparser
> > +
> > +#
> > +# Paths and names
> > +#
> > +PYTHON3_PYCPARSER_VERSION    := 2.18
> > +PYTHON3_PYCPARSER_MD5                := 72370da54358202a60130e223d488136
> > +PYTHON3_PYCPARSER            := pycparser-$(PYTHON3_PYCPARSER_VERSION)
> > +PYTHON3_PYCPARSER_SUFFIX     := tar.gz
> > +PYTHON3_PYCPARSER_URL                := https://pypi.python.org/packages/source/p/pycparser/$(PYTHON3_PYCPARSER).$(PYTHON3_PYCPARSER_SUFFIX)
> > +PYTHON3_PYCPARSER_SOURCE     := $(SRCDIR)/$(PYTHON3_PYCPARSER).$(PYTHON3_PYCPARSER_SUFFIX)
> > +PYTHON3_PYCPARSER_DIR                := $(BUILDDIR)/$(PYTHON3_PYCPARSER)
> > +PYTHON3_PYCPARSER_LICENSE    := BSD
>
> This is not an SPDX license identifier. Which BSD license is this supposed
> to be?

This seems to be BSD-3-Clause.
Shall I resend or will you fix that up?

Guillermo

>
> Michael
>
> > +PYTHON3_PYCPARSER_LICENSE_FILES := \
> > +     file://LICENSE;md5=86f1cedb4e6410a88ce8e30b91079169
> > +
> > +# ----------------------------------------------------------------------------
> > +# Prepare
> > +# ----------------------------------------------------------------------------
> > +
> > +PYTHON3_PYCPARSER_CONF_TOOL  := 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 <guille.rodriguez@gmail.com>")
> > +     @$(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=make
> > --
> > 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



-- 
Guillermo Rodriguez Garcia
guille.rodriguez@gmail.com

_______________________________________________
ptxdist mailing list
ptxdist@pengutronix.de

^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: [ptxdist] [PATCH] python3-pycparser: New package
  2019-11-25  9:57   ` Guillermo Rodriguez Garcia
@ 2019-11-26  7:08     ` Michael Olbrich
  0 siblings, 0 replies; 4+ messages in thread
From: Michael Olbrich @ 2019-11-26  7:08 UTC (permalink / raw)
  To: ptxdist

On Mon, Nov 25, 2019 at 10:57:00AM +0100, Guillermo Rodriguez Garcia wrote:
> El lun., 25 nov. 2019 a las 8:04, Michael Olbrich
> (<m.olbrich@pengutronix.de>) escribió:
> >
> > On Thu, Nov 21, 2019 at 10:17:05AM +0100, Guillermo Rodríguez 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 <guille.rodriguez@gmail.com>
> > > ---
> > >  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=python3
> > > +
> > > +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 <guille.rodriguez@gmail.com>
> > > +#
> > > +# For further information about the PTXdist project and license conditions
> > > +# see the README file.
> > > +#
> > > +
> > > +#
> > > +# We provide this package
> > > +#
> > > +PACKAGES-$(PTXCONF_PYTHON3_PYCPARSER) += python3-pycparser
> > > +
> > > +#
> > > +# Paths and names
> > > +#
> > > +PYTHON3_PYCPARSER_VERSION    := 2.18
> > > +PYTHON3_PYCPARSER_MD5                := 72370da54358202a60130e223d488136
> > > +PYTHON3_PYCPARSER            := pycparser-$(PYTHON3_PYCPARSER_VERSION)
> > > +PYTHON3_PYCPARSER_SUFFIX     := tar.gz
> > > +PYTHON3_PYCPARSER_URL                := https://pypi.python.org/packages/source/p/pycparser/$(PYTHON3_PYCPARSER).$(PYTHON3_PYCPARSER_SUFFIX)
> > > +PYTHON3_PYCPARSER_SOURCE     := $(SRCDIR)/$(PYTHON3_PYCPARSER).$(PYTHON3_PYCPARSER_SUFFIX)
> > > +PYTHON3_PYCPARSER_DIR                := $(BUILDDIR)/$(PYTHON3_PYCPARSER)
> > > +PYTHON3_PYCPARSER_LICENSE    := BSD
> >
> > This is not an SPDX license identifier. Which BSD license is this supposed
> > to be?
> 
> This seems to be BSD-3-Clause.
> Shall I resend or will you fix that up?

I'll do the fixup.

Michael


> Guillermo
> 
> >
> > Michael
> >
> > > +PYTHON3_PYCPARSER_LICENSE_FILES := \
> > > +     file://LICENSE;md5=86f1cedb4e6410a88ce8e30b91079169
> > > +
> > > +# ----------------------------------------------------------------------------
> > > +# Prepare
> > > +# ----------------------------------------------------------------------------
> > > +
> > > +PYTHON3_PYCPARSER_CONF_TOOL  := 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 <guille.rodriguez@gmail.com>")
> > > +     @$(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=make
> > > --
> > > 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
> 
> 
> 
> -- 
> Guillermo Rodriguez Garcia
> guille.rodriguez@gmail.com
> 
> _______________________________________________
> 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

^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2019-11-26  7:08 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2019-11-21  9:17 [ptxdist] [PATCH] python3-pycparser: New package Guillermo Rodríguez
2019-11-25  7:04 ` Michael Olbrich
2019-11-25  9:57   ` Guillermo Rodriguez Garcia
2019-11-26  7:08     ` Michael Olbrich

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox