All of lore.kernel.org
 help / color / mirror / Atom feed
* [Buildroot] [PATCH 1/1] add package for pdmenu
@ 2017-08-25 23:33 Brock Williams
  2017-08-26  8:16 ` Thomas Petazzoni
  0 siblings, 1 reply; 2+ messages in thread
From: Brock Williams @ 2017-08-25 23:33 UTC (permalink / raw)
  To: buildroot

Signed-off-by: Brock Williams <brock@cottonwoodcomputer.com>
---
 package/Config.in        | 1 +
 package/pdmenu/Config.in | 9 +++++++++
 package/pdmenu/pdmenu.mk | 9 +++++++++
 3 files changed, 19 insertions(+)
 create mode 100644 package/pdmenu/Config.in
 create mode 100644 package/pdmenu/pdmenu.mk

diff --git a/package/Config.in b/package/Config.in
index a512827..8df01a0 100644
--- a/package/Config.in
+++ b/package/Config.in
@@ -1847,6 +1847,7 @@ comment "Utilities"
        source "package/which/Config.in"
        source "package/xmlstarlet/Config.in"
        source "package/xxhash/Config.in"
+       source "package/pdmenu/Config.in"
 endmenu
 
 menu "System tools"
diff --git a/package/pdmenu/Config.in b/package/pdmenu/Config.in
new file mode 100644
index 0000000..df78c23
--- /dev/null
+++ b/package/pdmenu/Config.in
@@ -0,0 +1,9 @@
+config BR2_PACKAGE_PDMENU
+       bool "pdmenu"
+       depends on BR2_PACKAGE_SLANG
+       help
+               Pdmenu is a full screen menuing system for Unix. It is designed to be easy to use, and is suitable as a login shell for inexperienced users, or it can just be ran at the command line as a handy menu.
+
+               Pdmenu features color support and GPM mouse support at the Linux console. It was developed on Linux, and has now been compiled on many other unixes without problems.
+
+               https://joeyh.name/code/pdmenu/
diff --git a/package/pdmenu/pdmenu.mk b/package/pdmenu/pdmenu.mk
new file mode 100644
index 0000000..29ab510
--- /dev/null
+++ b/package/pdmenu/pdmenu.mk
@@ -0,0 +1,9 @@
+PDMENU_VERSION = 1.3.4
+PDMENU_SOURCE = pdmenu_$(PDMENU_VERSION).tar.gz
+PDMENU_SITE = http://http.debian.net/debian/pool/main/p/pdmenu
+PDMENU_LICENSE = GPL-2.0+
+PDMENU_LICENSE_FILES = COPYING.GPLv2
+PDMENU_DEPENDENCIES = slang
+PDMENU_INSTALL_TARGET_OPTS = INSTALL_PREFIX=$(TARGET_DIR) install
+
+$(eval $(autotools-package))
-- 
2.7.4

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

* [Buildroot] [PATCH 1/1] add package for pdmenu
  2017-08-25 23:33 [Buildroot] [PATCH 1/1] add package for pdmenu Brock Williams
@ 2017-08-26  8:16 ` Thomas Petazzoni
  0 siblings, 0 replies; 2+ messages in thread
From: Thomas Petazzoni @ 2017-08-26  8:16 UTC (permalink / raw)
  To: buildroot

Hello,

Thanks a lot for your contribution! Your patch looks mostly good,
there are only a few nits, see below. Could you address them and send
an updated version ?

On Fri, 25 Aug 2017 17:33:58 -0600, Brock Williams wrote:
> Signed-off-by: Brock Williams <brock@cottonwoodcomputer.com>
> ---
>  package/Config.in        | 1 +
>  package/pdmenu/Config.in | 9 +++++++++
>  package/pdmenu/pdmenu.mk | 9 +++++++++

Please add an entry to the top-level DEVELOPERS file for this package.
Also, please add a package/pdmenu/pdmenu.hash file.

> diff --git a/package/Config.in b/package/Config.in
> index a512827..8df01a0 100644
> --- a/package/Config.in
> +++ b/package/Config.in
> @@ -1847,6 +1847,7 @@ comment "Utilities"
>         source "package/which/Config.in"
>         source "package/xmlstarlet/Config.in"
>         source "package/xxhash/Config.in"
> +       source "package/pdmenu/Config.in"

Use alphabetic ordering for the list of packages.

> diff --git a/package/pdmenu/Config.in b/package/pdmenu/Config.in
> new file mode 100644
> index 0000000..df78c23
> --- /dev/null
> +++ b/package/pdmenu/Config.in
> @@ -0,0 +1,9 @@
> +config BR2_PACKAGE_PDMENU
> +       bool "pdmenu"
> +       depends on BR2_PACKAGE_SLANG

Use "select" instead of "depends on" here. As a consequence, you have
to replicate the "depends of" that BR2_PACKAGE_SLANG has. So:

	depends on BR2_USE_MMU # slang
	select BR2_PACKAGE_SLANG

> +       help
> +               Pdmenu is a full screen menuing system for Unix. It is designed to be easy to use, and is suitable as a login shell for inexperienced users, or it can just be ran at the command line as a handy menu.
> +
> +               Pdmenu features color support and GPM mouse support at the Linux console. It was developed on Linux, and has now been compiled on many other unixes without problems.
> +
> +               https://joeyh.name/code/pdmenu/

You should have run your package through ./utils/check-package, it
would have told you that the indentation for the help text is one tab +
two spaces, and that lines should be wrapped at the 72th column.

> diff --git a/package/pdmenu/pdmenu.mk b/package/pdmenu/pdmenu.mk
> new file mode 100644
> index 0000000..29ab510
> --- /dev/null
> +++ b/package/pdmenu/pdmenu.mk
> @@ -0,0 +1,9 @@

Please add the comment header that we have in all packages. Yes, it's
useless and silly, but we have it everywhere :)

> +PDMENU_VERSION = 1.3.4
> +PDMENU_SOURCE = pdmenu_$(PDMENU_VERSION).tar.gz
> +PDMENU_SITE = http://http.debian.net/debian/pool/main/p/pdmenu
> +PDMENU_LICENSE = GPL-2.0+
> +PDMENU_LICENSE_FILES = COPYING.GPLv2
> +PDMENU_DEPENDENCIES = slang
> +PDMENU_INSTALL_TARGET_OPTS = INSTALL_PREFIX=$(TARGET_DIR) install
> +
> +$(eval $(autotools-package))

Otherwise, looks good. Could you send an updated version?

Thanks a lot!

Thomas
-- 
Thomas Petazzoni, CTO, Free Electrons
Embedded Linux and Kernel engineering
http://free-electrons.com

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

end of thread, other threads:[~2017-08-26  8:16 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2017-08-25 23:33 [Buildroot] [PATCH 1/1] add package for pdmenu Brock Williams
2017-08-26  8:16 ` Thomas Petazzoni

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.