Bug 92025 - Update port: games/eboard (add desktop entry)
Summary: Update port: games/eboard (add desktop entry)
Status: Closed FIXED
Alias: None
Product: Ports & Packages
Classification: Unclassified
Component: Individual Port(s) (show other bugs)
Version: Latest
Hardware: Any Any
: Normal Affects Only Me
Assignee: Pete Fritchman
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2006-01-19 21:40 UTC by Jean-Yves Lefort
Modified: 2006-02-11 02:01 UTC (History)
0 users

See Also:


Attachments
file.diff (595 bytes, patch)
2006-01-19 21:40 UTC, Jean-Yves Lefort
no flags Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Jean-Yves Lefort freebsd_committer freebsd_triage 2006-01-19 21:40:01 UTC

    
Comment 1 Edwin Groothuis freebsd_committer freebsd_triage 2006-01-19 21:44:09 UTC
Responsible Changed
From-To: freebsd-ports-bugs->petef

Over to maintainer
Comment 2 Jean-Yves Lefort freebsd_committer freebsd_triage 2006-01-24 00:50:41 UTC
Update:

  - Add an icon to the menu item
  - Let eboard use TCP_NODELAY, and remove useless network.h patch

diff -ruN /usr/ports/games/eboard/Makefile eboard/Makefile
--- /usr/ports/games/eboard/Makefile	Wed Feb  4 06:20:20 2004
+++ eboard/Makefile	Tue Jan 24 01:40:18 2006
@@ -7,7 +7,7 @@
 
 PORTNAME=	eboard
 PORTVERSION=	0.9.5
-PORTREVISION=	1
+PORTREVISION=	2
 EXTRAS=		1pl2 2
 CATEGORIES=	games
 MASTER_SITES=	${MASTER_SITE_SOURCEFORGE}
@@ -29,6 +29,13 @@
 MAN1=	eboard-config.1 eboard-addtheme.1
 MAN6=	eboard.6
 
+DESKTOP_ENTRIES="eboard" \
+		"Play chess" \
+		"eboard.xpm" \
+		"eboard" \
+		"Application;Game;" \
+		false
+
 post-patch:
 	@${REINPLACE_CMD} -e 's,g++,${CXX},' -e 's,-O6,${CXXFLAGS},' \
 		${WRKSRC}/configure
@@ -46,5 +53,7 @@
 	@cd ${WRKDIR}/eboard-extras-${extra} && ./${CONFIGURE_SCRIPT} --prefix=${PREFIX}
 	@cd ${WRKDIR}/eboard-extras-${extra} && ${SETENV} ${MAKE_ENV} ${MAKE} install
 .endfor
+	${MKDIR} ${PREFIX}/share/pixmaps
+	${INSTALL_DATA} ${WRKSRC}/icon-eboard.xpm ${PREFIX}/share/pixmaps/eboard.xpm
 
 .include <bsd.port.mk>
diff -ruN /usr/ports/games/eboard/files/patch-configure eboard/files/patch-configure
--- /usr/ports/games/eboard/files/patch-configure	Sun Dec 21 17:52:15 2003
+++ eboard/files/patch-configure	Tue Jan 24 01:33:39 2006
@@ -1,7 +1,5 @@
-$FreeBSD: ports/games/eboard/files/patch-configure,v 1.1 2003/12/21 16:52:15 petef Exp $
-
---- configure.orig	Wed Nov 26 17:48:49 2003
-+++ configure	Sun Dec 21 10:00:21 2003
+--- configure.orig	Thu Nov 27 00:48:49 2003
++++ configure	Tue Jan 24 01:33:19 2006
 @@ -244,7 +244,7 @@
  	}
  	print TESTCC "$program";
@@ -11,3 +9,35 @@
  	    print ": no\n";
  	    $y = header_def($x);
  	    print CONFIGH "#undef $y\n";
+@@ -372,17 +372,9 @@
+ #optional headers
+ header_check("strings.h","sys/soundcard.h","sys/audioio.h");
+ 
+-$t1=macro_check("netinet/in.h","IPPROTO_TCP","HAVE_IPPROTO_TCP_ON_IN_H");
+-$t2=macro_check("netinet/in.h","TCP_NODELAY","HAVE_TCP_NODELAY_ON_IN_H");
+-$t3=macro_check("netinet/in.h","SOL_TCP","HAVE_SOL_TCP_ON_IN_H");
+-
+-$t4=macro_check("netinet/tcp.h","IPPROTO_TCP","HAVE_IPPROTO_TCP_ON_TCP_H");
+-$t5=macro_check("netinet/tcp.h","TCP_NODELAY","HAVE_TCP_NODELAY_ON_TCP_H");
+-$t6=macro_check("netinet/tcp.h","SOL_TCP","HAVE_SOL_TCP_ON_TCP_H");
+-
+ print "  net options: ";
+ 
+-if ($t2 != 0) {
++if (0) {
+     cppdef("USE_SOCK_OPTS");
+     if ($t1!=0 && $t3!=0) {
+ 	cppundef("NEED_TCP_H");
+@@ -396,10 +388,10 @@
+ 	print "netinet/tcp.h not required, SOL_TCP present.\n";
+     }
+ } else {
+-    if ($t5 != 0 && ($t1!=0 || $t4!=0) && ($t3!=0 || $t6!=0) ) {
++    if (1) {
+ 	cppdef("NEED_TCP_H");
+ 	cppdef("USE_SOCK_OPTS");
+-	if ($t1!=0 || $t4!=0) {
++	if (1) {
+ 	    cppdef("USE_IPPROTO_TCP");
+ 	    print "netinet/tcp.h required, IPPROTO_TCP present.\n";
+ 	} else {
diff -ruN /usr/ports/games/eboard/files/patch-network.h eboard/files/patch-network.h
--- /usr/ports/games/eboard/files/patch-network.h	Fri Aug 23 23:24:50 2002
+++ eboard/files/patch-network.h	Thu Jan  1 01:00:00 1970
@@ -1,13 +0,0 @@
---- network.h.orig	Sat Jul  6 17:05:11 2002
-+++ network.h	Wed Aug 14 00:56:14 2002
-@@ -47,6 +47,10 @@
- #include "stl.h"
- #include "eboard.h"
- 
-+#ifndef SOL_TCP
-+#define SOL_TCP IPPROTO_TCP
-+#endif
-+
- class PidIssuer {
-  public:
-   virtual void farewellPid(int dpid)=0;
diff -ruN /usr/ports/games/eboard/pkg-plist eboard/pkg-plist
--- /usr/ports/games/eboard/pkg-plist	Sun Dec 21 17:52:15 2003
+++ eboard/pkg-plist	Tue Jan 24 01:40:28 2006
@@ -70,5 +70,6 @@
 share/eboard/plastic.png
 share/eboard/themeconf.extras1
 share/eboard/themeconf.extras2
+share/pixmaps/eboard.xpm
 @dirrm share/eboard
 %%PORTDOCS%%@dirrm %%DOCSDIR%%


-- 
Jean-Yves Lefort

jylefort@FreeBSD.org
http://lefort.be.eu.org/
Comment 3 Jean-Yves Lefort freebsd_committer freebsd_triage 2006-02-11 02:00:57 UTC
State Changed
From-To: open->closed

Committed.