1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-12-21 04:06:46 +00:00

- Update to 2.0.0

PR:		146670
Submitted by:	Ports Fury
This commit is contained in:
Martin Wilke 2010-06-05 21:46:47 +00:00
parent 3c7cdcada0
commit ea303c884d
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/head/; revision=255847
7 changed files with 47 additions and 67 deletions

View File

@ -6,28 +6,50 @@
#
PORTNAME= gtimer
PORTVERSION= 1.1.6
PORTREVISION= 4
PORTVERSION= 2.0.0
CATEGORIES= deskutils
MASTER_SITES= http://www.k5n.us/files/ \
http://www.cknudsen.com/gtimer/
MASTER_SITES= SF/${PORTNAME}/${PORTVERSION}
MAINTAINER= ports@FreeBSD.org
COMMENT= A timer for your personal activities
USE_BZIP2= yes
USE_GMAKE= yes
USE_GNOME= gtk12
GNU_CONFIGURE= yes
RUN_DEPENDS= xdg-open:${PORTSDIR}/devel/xdg-utils
MAN1= gtimer.1
PLIST_FILES= bin/gtimer
USE_XORG= xscrnsaver
USE_GNOME= gtk20
USE_PERL5_BUILD=yes
USE_GETTEXT= yes
USE_GMAKE= yes
GNU_CONFIGURE= yes
CONFIGURE_ENV= CPPFLAGS="${CPPFLAGS}" LDFLAGS="${LDFLAGS}"
MAN1= ${PORTNAME}.1
CPPFLAGS= -I${LOCALBASE}/include
LDFLAGS= -L${LOCALBASE}/lib
post-patch:
@${REINPLACE_CMD} -e 's|malloc\.h|stdlib.h|g' \
${WRKSRC}/project.c
@${REINPLACE_CMD} -e 's|1.1.7|${PORTVERSION}|g' ${WRKSRC}/configure
@${REINPLACE_CMD} -e 's|"sensible-browser"|"xdg-open"|g' ${WRKSRC}/config.h
.for file in project.c task.c
@${REINPLACE_CMD} -e 's|<malloc\.h>|<stdlib.h>|g' ${WRKSRC}/${file}
.endfor
post-install:
@${INSTALL_MAN} ${WRKSRC}/gtimer.1 ${PREFIX}/man/man1
pre-build:
@(cd ${WRKSRC} && ${PERL} ./txt2h.pl < ChangeLog > changelog.h)
post-build:
.for lang in cs cz es fr sv
cd ${WRKSRC}/po && ${LOCALBASE}/bin/msgfmt -o ${lang}.mo ${lang}.po
.endfor
do-install:
${INSTALL_PROGRAM} ${WRKSRC}/${PORTNAME} ${PREFIX}/bin
${INSTALL_MAN} ${WRKSRC}/${PORTNAME}.1 ${MANPREFIX}/man/man1
.for lang in cs cz es fr sv
@${MKDIR} ${PREFIX}/share/locale/${lang}/LC_MESSAGES
${INSTALL_DATA} ${WRKSRC}/po/${lang}.mo \
${PREFIX}/share/locale/${lang}/LC_MESSAGES/${PORTNAME}.mo
.endfor
.include <bsd.port.mk>

View File

@ -1,3 +1,3 @@
MD5 (gtimer-1.1.6.tar.bz2) = dd129daf0046ca4de05c67456989d226
SHA256 (gtimer-1.1.6.tar.bz2) = 8e6738ddb02803a3af3af50ead427b7a08108fc3ff95cf8a4f8cf459a41e9727
SIZE (gtimer-1.1.6.tar.bz2) = 98953
MD5 (gtimer-2.0.0.tar.gz) = 1cc0ff18f566b5e497dc34ad9627b062
SHA256 (gtimer-2.0.0.tar.gz) = a2dd70793a5b1b4d497be0c4429b8e8cef6910497b6af8fbdedff00764308458
SIZE (gtimer-2.0.0.tar.gz) = 199961

View File

@ -1,14 +0,0 @@
--- annotate.c.orig Fri Dec 30 18:15:44 2005
+++ annotate.c Fri Dec 30 18:15:57 2005
@@ -95,9 +95,9 @@
len = GTK_TEXT ( td->text )->gap_position;
str = (char *) malloc ( len + 1 );
#if GTK_VERSION < 10100
- strncpy ( str, (char *) GTK_TEXT ( td->text )->text, len );
+ strncpy ( str, (char *) &GTK_TEXT ( td->text )->text, len );
#else
- strncpy ( str, (char *) GTK_TEXT ( td->text )->text.wc, len );
+ strncpy ( str, (char *) &GTK_TEXT ( td->text )->text.wc, len );
#endif
str[len] = '\0';
if ( strlen ( str ) )

View File

@ -1,11 +0,0 @@
--- configure.orig Fri Dec 30 18:01:56 2005
+++ configure Fri Dec 30 18:02:16 2005
@@ -701,7 +701,7 @@
PACKAGE=gtimer
-VERSION=1.1.2
+VERSION=1.1.6
if test "`cd $srcdir && pwd`" != "`pwd`" && test -f $srcdir/config.status; then
{ echo "configure: error: source directory already configured; run "make distclean" there first" 1>&2; exit 1; }

View File

@ -1,15 +0,0 @@
--- main.c.orig Fri Dec 30 18:29:18 2005
+++ main.c Fri Dec 30 18:30:02 2005
@@ -2455,10 +2455,12 @@
task_list = create_list_column_def ( 4, task_list_columns );
gtk_clist_set_selection_mode (GTK_CLIST (task_list), GTK_SELECTION_BROWSE);
gtk_widget_set_usize (GTK_WIDGET (task_list), 350, 150);
+/*
#if GTK_VERSION < 10100
gtk_clist_set_policy (GTK_CLIST (task_list),
GTK_POLICY_AUTOMATIC, GTK_POLICY_AUTOMATIC);
#endif
+*/
gtk_signal_connect (GTK_OBJECT (task_list), "click_column",
GTK_SIGNAL_FUNC (column_selected_callback), NULL);
gtk_signal_connect (GTK_OBJECT (task_list), "event",

View File

@ -1,10 +0,0 @@
--- task.c.orig Thu Mar 9 07:27:50 2000
+++ task.c Sat Apr 29 14:35:16 2000
@@ -54,7 +54,6 @@
#include <dirent.h>
#endif
#include <errno.h>
-#include <malloc.h>
#include <string.h>
#include <ctype.h>
#include <sys/types.h>

View File

@ -0,0 +1,8 @@
bin/gtimer
share/locale/cs/LC_MESSAGES/gtimer.mo
share/locale/cz/LC_MESSAGES/gtimer.mo
share/locale/es/LC_MESSAGES/gtimer.mo
share/locale/fr/LC_MESSAGES/gtimer.mo
share/locale/sv/LC_MESSAGES/gtimer.mo
@dirrmtry share/locale/cz/LC_MESSAGES
@dirrmtry share/locale/cz