ports/144587: Update port: games/biorythm to 1.1.3
KATO Tsuguru
tkato432 at yahoo.com
Tue Mar 9 18:10:02 UTC 2010
>Number: 144587
>Category: ports
>Synopsis: Update port: games/biorythm to 1.1.3
>Confidential: no
>Severity: non-critical
>Priority: low
>Responsible: freebsd-ports-bugs
>State: open
>Quarter:
>Keywords:
>Date-Required:
>Class: change-request
>Submitter-Id: current-users
>Arrival-Date: Tue Mar 09 18:10:01 UTC 2010
>Closed-Date:
>Last-Modified:
>Originator: KATO Tsuguru
>Release: FreeBSD 7.2-RELEASE-p7 i386
>Organization:
>Environment:
>Description:
- Update to version 1.1.3
Remove file:
files/patch-aa
files/patch-ab
pkg-plist
>How-To-Repeat:
>Fix:
diff -urN /usr/ports/games/biorythm/Makefile games/biorythm/Makefile
--- /usr/ports/games/biorythm/Makefile 2004-02-04 18:58:31.000000000 +0900
+++ games/biorythm/Makefile 2010-03-10 02:54:17.000000000 +0900
@@ -6,8 +6,7 @@
#
PORTNAME= biorythm
-PORTVERSION= 1.1.2
-PORTREVISION= 1
+PORTVERSION= 1.1.3
CATEGORIES= games
MASTER_SITES= http://shh.thathost.com/pub-unix/files/
@@ -17,11 +16,22 @@
LIB_DEPENDS= shhmsg.1:${PORTSDIR}/devel/libshhmsg \
shhopt.1:${PORTSDIR}/devel/libshhopt
-USE_GMAKE= yes
-
-MAN6= biorythm.6
-
-post-install:
+MAN6= ${PORTNAME}.6
+PORTDOCS= CREDITS ChangeLog README
+PLIST_FILES= bin/${PORTNAME}
+
+post-patch:
+ @${REINPLACE_CMD} -e '/VERSION/s|[[:space:]]"$$|\\n"| ; \
+ /COMPILED_DATE/d' ${WRKSRC}/biorythm.c
+
+do-build:
+ cd ${WRKSRC} && ${CC} ${CFLAGS} -I. -I${LOCALBASE}/include \
+ -DVERSION=\"${PORTVERSION}\" -D_ANSI_SOURCE *.c \
+ -o ${PORTNAME} -L${LOCALBASE}/lib -lshhmsg -lshhopt -lm
+
+do-install:
+ ${INSTALL_PROGRAM} ${WRKSRC}/${PORTNAME} ${PREFIX}/bin
+ ${INSTALL_MAN} ${WRKSRC}/${PORTNAME}.6 ${MAN6PREFIX}/man/man6
.if !defined(NOPORTDOCS)
@${MKDIR} ${DOCSDIR}
.for file in CREDITS ChangeLog README
diff -urN /usr/ports/games/biorythm/distinfo games/biorythm/distinfo
--- /usr/ports/games/biorythm/distinfo 2005-11-25 13:34:46.000000000 +0900
+++ games/biorythm/distinfo 2010-03-10 00:12:01.000000000 +0900
@@ -1,3 +1,3 @@
-MD5 (biorythm-1.1.2.tar.gz) = 4a85612ec675ce9fae4bb77cc48a6143
-SHA256 (biorythm-1.1.2.tar.gz) = 39037605c34e05d72ba6a1fecb5d7bae4cc43acdad1c6c2281e0a5ae0c400c79
-SIZE (biorythm-1.1.2.tar.gz) = 6481
+MD5 (biorythm-1.1.3.tar.gz) = 5138036284617e783e1ee6901b441739
+SHA256 (biorythm-1.1.3.tar.gz) = 53a510b28eaa3308e4bd84b9e5c71c02580cbb9556ab23652aaf71839a4a2d35
+SIZE (biorythm-1.1.3.tar.gz) = 6490
diff -urN /usr/ports/games/biorythm/files/patch-aa games/biorythm/files/patch-aa
--- /usr/ports/games/biorythm/files/patch-aa 2004-06-15 22:47:38.000000000 +0900
+++ games/biorythm/files/patch-aa 1970-01-01 09:00:00.000000000 +0900
@@ -1,48 +0,0 @@
---- Makefile.orig Sat Mar 2 21:32:42 2002
-+++ Makefile Wed May 8 21:34:35 2002
-@@ -5,33 +5,29 @@
- VERMIN = 1
- VERPAT = 2
- VERSION = $(VERMAJ).$(VERMIN).$(VERPAT)
--COMPILED_DATE = `date '+%Y-%m-%d %H:%M:%S'`
--COMPILED_BY = `whoami`
-
- ###########################################################################
-
- # where are shhmsg and shhopt?
--INCDIR = -I/usr/local/include
--LIBDIR = -L/usr/local/lib
-+INCDIR = -I${LOCALBASE}/include
-+LIBDIR = -L${LOCALBASE}/lib
-
--INSTBASEDIR = /usr/local
--INSTBINDIR = $(INSTBASEDIR)/games
-+INSTBASEDIR = ${PREFIX}
-+INSTBINDIR = $(INSTBASEDIR)/bin
- INSTMANDIR = $(INSTBASEDIR)/man/man6
--INSTALL = install -m 644
--INSTALLPROG = install -s -m 755
--MKDIRP = install -d -m 755
--
--DEFINES = -DVERSION=\"$(VERSION)\" \
-- "-DCOMPILED_DATE=\"$(COMPILED_DATE)\"" \
-- "-DCOMPILED_BY=\"$(COMPILED_BY)\""
-+INSTALL = ${BSD_INSTALL_DATA}
-+INSTALLPROG = ${BSD_INSTALL_PROGRAM}
-+MKDIRP = mkdir -p
-+
-+DEFINES = -DVERSION=\"$(VERSION)\" -D_ANSI_SOURCE
-
- ###########################################################################
-
--CC = gcc
-+#CC = gcc
-
- OPTIM = -O2
--CCOPT = -Wall $(OPTIM) $(INCDIR) $(DEFINES) $(CFLAGS)
--LDOPT = -s $(LIBDIR) $(LDFLAGS)
-+CCOPT = $(INCDIR) $(DEFINES) $(CFLAGS)
-+LDOPT = $(LIBDIR) $(LDFLAGS)
-
- LIBS = -lshhmsg -lshhopt -lm
- OBJS = $(PROG).o date.o
diff -urN /usr/ports/games/biorythm/files/patch-ab games/biorythm/files/patch-ab
--- /usr/ports/games/biorythm/files/patch-ab 2002-05-21 17:13:17.000000000 +0900
+++ games/biorythm/files/patch-ab 1970-01-01 09:00:00.000000000 +0900
@@ -1,12 +0,0 @@
---- biorythm.c.orig Sat Mar 2 21:31:53 2002
-+++ biorythm.c Wed May 8 21:52:41 2002
-@@ -148,8 +148,7 @@
- version(void)
- {
- printf(
-- "biorythm " VERSION ", by Sverre H. Huseby "
-- "(compiled " COMPILED_DATE " by " COMPILED_BY ")\n"
-+ "biorythm " VERSION ", by Sverre H. Huseby\n"
- );
- exit(0);
- }
diff -urN /usr/ports/games/biorythm/pkg-plist games/biorythm/pkg-plist
--- /usr/ports/games/biorythm/pkg-plist 2001-12-24 11:14:34.000000000 +0900
+++ games/biorythm/pkg-plist 1970-01-01 09:00:00.000000000 +0900
@@ -1,5 +0,0 @@
-bin/biorythm
-%%PORTDOCS%%share/doc/biorythm/CREDITS
-%%PORTDOCS%%share/doc/biorythm/ChangeLog
-%%PORTDOCS%%share/doc/biorythm/README
-%%PORTDOCS%%@dirrm share/doc/biorythm
>Release-Note:
>Audit-Trail:
>Unformatted:
More information about the freebsd-ports-bugs
mailing list