Skip to contentSkip to conversation

fix help comment Signed-off-by: JoM <[email protected]>

PATCH New JoM 2 participants 2 messages Mar 22, 2012 – Mar 25, 2012

lore
Share & tools
lore

JoM

author
#0 lore raw

PATCH 1/1 fix help comment Signed-off-by: JoM <[email protected]>

---
 package/Config.in        |    1 +
 package/fbterm/Config.in |   12 ++++++++++++
 package/fbterm/fbterm.mk |   23 +++++++++++++++++++++++
 3 files changed, 36 insertions(+), 0 deletions(-)
 create mode 100644 package/fbterm/Config.in
 create mode 100644 package/fbterm/fbterm.mk
package/Config.in +1 -0
index 85583c6..c2d02b7 100644
@@ -109,6 +109,7 @@ if BR2_PACKAGE_BUSYBOX_SHOW_OTHERS
 source "package/fbset/Config.in"
 endif
 source "package/fbv/Config.in"
+source "package/fbterm/Config.in"
 source "package/imagemagick/Config.in"
 source "package/linux-fusion/Config.in"
 source "package/lite/Config.in"
package/fbterm/Config.in new file +12 -0
new file mode 100644
index 0000000..0a36a9f
@@ -0,0 +1,12 @@
+config BR2_PACKAGE_FBTERM
+	bool "fbterm"
+	  select BR2_PACKAGE_FREETYPE
+	  select BR2_PACKAGE_FONTCONFIG
+	  select BR2_PACKAGE_ZLIB
+	  select BR2_PACKAGE_EXPAT
+	help
+	  FbTerm (Frame buffer terminal emulator) is a fast terminal emulator and a 
+	  standalone replacement of GNU/Linux terminal that can function outside of
+	  Xorg with the frame buffer device or VESA video card.
+	  
+	  http://code.google.com/p/fbterm/
package/fbterm/fbterm.mk new file +23 -0
new file mode 100644
index 0000000..44f63f1
@@ -0,0 +1,23 @@
+#############################################################
+#
+# fbterm
+#
+#############################################################
+FBTERM_BINARY = fbterm
+FBTERM_TARGET_BINARY = usr/bin/$(FBTERM_BINARY)
+FBTERM_VERSION = 1.7.0
+FBTERM_SITE = http://fbterm.googlecode.com/files
+FBTERM_DEPENDENCIES += freetype fontconfig
+
+ifeq ($(BR2_PACKAGE_ZLIB),y)
+	FBTERM_DEPENDENCIES += zlib
+endif
+
+FBTERM_DEPENDENCIES += $(if $(BR2_PACKAGE_EXPAT),expat)
+
+define FBTERM_UNINSTALL_CMDS
+	rm -f $(TARGET_DIR)/$(FBTERM_TARGET_BINARY)
+endef
+
+
+$(eval $(call AUTOTARGETS))
Signature · 1 line
1.7.2.5
#1 lore raw

PATCH 1/1 fix help comment Signed-off-by: JoM <[email protected]>

Hoi Johann,

There seems to be something wrong with your commit messages: the
commit message itself is missing, and the Signed-off-by is squashed into the same line as the rest. Your commit message should look something like this:

fbterm: new package

---
v3: fix help comment
v2: package check for libexpat and zlib

Note also that the Signed-off-by line should have your full name,
since it's a legal statement that you license the patch under buildroot's GPL license and that you have the right to do so [1].

On Thursday 22 March 2012 15:26:53 JoM wrote:
[snip]

package/fbterm/Config.in line 6

Quoted 8 lines

+++ b/package/fbterm/Config.in

package/fbterm/Config.in new file +6 -0
@@ -0,0 +1,12 @@
+config BR2_PACKAGE_FBTERM
+	bool "fbterm"
+	  select BR2_PACKAGE_FREETYPE
+	  select BR2_PACKAGE_FONTCONFIG
+	  select BR2_PACKAGE_ZLIB
+	  select BR2_PACKAGE_EXPAT

The select statement should just have a tab in front of them, not two
spaces like for the help text.

package/fbterm/Config.in line 10

Quoted 4 lines
package/fbterm/Config.in new file +4 -0
+	help
+	  FbTerm (Frame buffer terminal emulator) is a fast terminal emulator and a 
+	  standalone replacement of GNU/Linux terminal that can function outside of
+	  Xorg with the frame buffer device or VESA video card.

Please wrap the help text at +- 80 columns (where the tab counts for 8
columns).

Quoted 8 lines
package/fbterm/Config.in new file +2 -0
+	  
+	  http://code.google.com/p/fbterm/
package/fbterm/fbterm.mk new file +0 -0
new file mode 100644
index 0000000..44f63f1

package/fbterm/fbterm.mk line 7

Quoted 7 lines
package/fbterm/fbterm.mk new file +7 -0
@@ -0,0 +1,23 @@
+#############################################################
+#
+# fbterm
+#
+#############################################################
+FBTERM_BINARY = fbterm
+FBTERM_TARGET_BINARY = usr/bin/$(FBTERM_BINARY)

FBTERM_BINARY and FBTERM_TARGET_BINARY are useless, since they are
used only once. And as I mentioned before, they're not likely to change in the future anyway so there's no reason to make variables for them.

package/fbterm/fbterm.mk line 16

Quoted 9 lines
package/fbterm/fbterm.mk new file +9 -0
+FBTERM_VERSION = 1.7.0
+FBTERM_SITE = http://fbterm.googlecode.com/files
+FBTERM_DEPENDENCIES += freetype fontconfig
+
+ifeq ($(BR2_PACKAGE_ZLIB),y)
+	FBTERM_DEPENDENCIES += zlib
+endif
+
+FBTERM_DEPENDENCIES += $(if $(BR2_PACKAGE_EXPAT),expat)

Please use only one of the two possible styles, otherwise things
get confusing.

package/fbterm/fbterm.mk line 20

Quoted 4 lines
package/fbterm/fbterm.mk new file +4 -0
+
+define FBTERM_UNINSTALL_CMDS
+	rm -f $(TARGET_DIR)/$(FBTERM_TARGET_BINARY)
+endef

Why do you need to define this? The autotools-generated uninstall
target should do this already. And anyway, the PKG_UNINSTALL_CMDS are only used for host packages; in this case it should have been PKG_UNINSTALL_TARGET_CMDS. And finally, uninstall is on its way out so don't do too much effort to implement it.

Regards,
Arnout

[1] http://kerneltrap.org/files/Jeremy/DCO.txt

Signature · 6 lines
Arnout Vandecappelle                               arnout at mind be
Senior Embedded Software Architect                 +32-16-286540
Essensium/Mind                                     http://www.mind.be
G.Geenslaan 9, 3001 Leuven, Belgium                BE 872 984 063 RPR Leuven
LinkedIn profile: http://www.linkedin.com/in/arnoutvandecappelle
GPG fingerprint:  7CB5 E4CC 6C2E EFD4 6E3D A754 F963 ECAB 2450 2F1F