svn commit: r344172 - in head/math/oleo: . files

Pietro Cerutti gahr at FreeBSD.org
Fri Feb 14 09:40:29 UTC 2014


Author: gahr
Date: Fri Feb 14 09:40:28 2014
New Revision: 344172
URL: http://svnweb.freebsd.org/changeset/ports/344172
QAT: https://qat.redports.org/buildarchive/r344172/

Log:
  - STAGE-clean
  - Convert to new LIB_DEPENDS format
  - Add LICENSE

Added:
  head/math/oleo/files/patch-Xresources_Makefile.in   (contents, props changed)
  head/math/oleo/files/patch-po_Makefile.in.in   (contents, props changed)
Modified:
  head/math/oleo/Makefile
  head/math/oleo/files/patch-src_io-term.c
  head/math/oleo/pkg-plist

Modified: head/math/oleo/Makefile
==============================================================================
--- head/math/oleo/Makefile	Fri Feb 14 09:12:01 2014	(r344171)
+++ head/math/oleo/Makefile	Fri Feb 14 09:40:28 2014	(r344172)
@@ -11,25 +11,26 @@ MASTER_SITE_SUBDIR=	${PORTNAME}
 MAINTAINER=	gahr at FreeBSD.org
 COMMENT=	The GNU spreadsheet for X11 and terminals
 
+LICENSE=	GPLv2
+
 USE_PERL5=	build
 USES=		bison perl5
 USE_AUTOTOOLS=	autoconf213
 CONFIGURE_ENV=	LIBS="-L${LOCALBASE}/lib"
+MAKE_ENV+=	DESTDIR=${STAGEDIR}
 CPPFLAGS+=	-I${LOCALBASE}/include
 CONFIGURE_ARGS=	--with-x --without-xlt --without-SciPlot
 
 INFO=		oleo
-PORTDOCS=	AUTHORS FAQ
 
 OPTIONS_DEFINE=	MOTIF NLS
 
-NO_STAGE=	yes
 .include <bsd.port.options.mk>
 
 .if ${PORT_OPTIONS:MMOTIF}
-LIB_DEPENDS+=	plot:${PORTSDIR}/graphics/plotutils \
-		Xbae:${PORTSDIR}/x11-toolkits/xbae \
-		XmHTML:${PORTSDIR}/x11-toolkits/xmhtml
+LIB_DEPENDS+=	libplot.so:${PORTSDIR}/graphics/plotutils \
+		libXbae.so:${PORTSDIR}/x11-toolkits/xbae \
+		libXmHTML.so:${PORTSDIR}/x11-toolkits/xmhtml
 USES+=		motif
 CONFIGURE_ARGS+=	--with-motif
 .else
@@ -48,20 +49,14 @@ PLIST_SUB=	NLS="@comment "
 post-patch:
 	@${GREP} -lR "malloc\.h" ${WRKSRC} | ${XARGS} ${REINPLACE_CMD} -e \
 		's|malloc\.h|stdlib.h|g'
+	@${REINPLACE_CMD} -e '/^DESTDIR/s|=|?=|' \
+	    ${WRKSRC}/Makefile.in
 .for pof in en fr nl
 	@${REINPLACE_CMD} -e "s|CHARSET|ISO-8859-1|;s|ENCODING|8bit|"	\
 		${WRKSRC}/po/${pof}.po
 .endfor
-.if defined(NOPORTDOCS)
 	@${REINPLACE_CMD} -e "s|am: install-docDATA|am:|" ${WRKSRC}/Makefile.in
 	@${REINPLACE_CMD} -e "s|install-info-am install-htmlDATA|install-info-am|" \
 		${WRKSRC}/doc/Makefile.in
-.endif
-
-pre-build:
-.for file in src/io-term.c
-	cd ${WRKSRC} && ${MV} ${file} ${file}.pre_iconv \
-		&& iconv -c -t ascii ${file}.pre_iconv > ${file} || ${TRUE}
-.endfor
 
 .include <bsd.port.mk>

Added: head/math/oleo/files/patch-Xresources_Makefile.in
==============================================================================
--- /dev/null	00:00:00 1970	(empty, because file is newly added)
+++ head/math/oleo/files/patch-Xresources_Makefile.in	Fri Feb 14 09:40:28 2014	(r344172)
@@ -0,0 +1,26 @@
+--- Xresources/Makefile.in.orig	2001-03-10 15:32:46.000000000 +0100
++++ Xresources/Makefile.in	2014-02-14 10:40:45.000000000 +0100
+@@ -41,7 +41,7 @@
+ includedir = @includedir@
+ oldincludedir = /usr/include
+ 
+-DESTDIR =
++DESTDIR ?=
+ 
+ pkgdatadir = $(datadir)/@PACKAGE@
+ pkglibdir = $(libdir)/@PACKAGE@
+@@ -235,10 +235,10 @@
+ 
+ 
+ install-data-hook:
+-		$(mkinstalldirs) $(nldir) $(frdir) $(endir)
+-		$(INSTALL_DATA) $(srcdir)/Oleo.nl $(nldir)/Oleo
+-		$(INSTALL_DATA) $(srcdir)/Oleo.fr $(frdir)/Oleo
+-		$(INSTALL_DATA) $(srcdir)/Oleo.en $(endir)/Oleo
++		$(mkinstalldirs) $(DESTDIR)$(nldir) $(DESTDIR)$(frdir) $(DESTDIR)$(endir)
++		$(INSTALL_DATA) $(srcdir)/Oleo.nl $(DESTDIR)$(nldir)/Oleo
++		$(INSTALL_DATA) $(srcdir)/Oleo.fr $(DESTDIR)$(frdir)/Oleo
++		$(INSTALL_DATA) $(srcdir)/Oleo.en $(DESTDIR)$(endir)/Oleo
+ 
+ # Tell versions [3.59,3.63) of GNU make to not export all variables.
+ # Otherwise a system limit (for SysV at least) may be exceeded.

Added: head/math/oleo/files/patch-po_Makefile.in.in
==============================================================================
--- /dev/null	00:00:00 1970	(empty, because file is newly added)
+++ head/math/oleo/files/patch-po_Makefile.in.in	Fri Feb 14 09:40:28 2014	(r344172)
@@ -0,0 +1,48 @@
+--- po/Makefile.in.in.orig	1998-08-27 23:15:29.000000000 +0200
++++ po/Makefile.in.in	2014-02-14 10:38:35.000000000 +0100
+@@ -16,6 +16,8 @@
+ top_srcdir = @top_srcdir@
+ VPATH = @srcdir@
+ 
++DESTDIR ?=
++
+ prefix = @prefix@
+ exec_prefix = @exec_prefix@
+ datadir = $(prefix)/@DATADIRNAME@
+@@ -111,16 +113,16 @@
+ install-data-no: all
+ install-data-yes: all
+ 	if test -r "$(MKINSTALLDIRS)"; then \
+-	  $(MKINSTALLDIRS) $(datadir); \
++	  $(MKINSTALLDIRS) $(DESTDIR)$(datadir); \
+ 	else \
+-	  $(SHELL) $(top_srcdir)/mkinstalldirs $(datadir); \
++	  $(SHELL) $(top_srcdir)/mkinstalldirs $(DESTDIR)$(datadir); \
+ 	fi
+ 	@catalogs='$(CATALOGS)'; \
+ 	for cat in $$catalogs; do \
+ 	  cat=`basename $$cat`; \
+ 	  case "$$cat" in \
+-	    *.gmo) destdir=$(gnulocaledir);; \
+-	    *)     destdir=$(localedir);; \
++	    *.gmo) destdir=$(DESTDIR)$(gnulocaledir);; \
++	    *)     destdir=$(DESTDIR)$(localedir);; \
+ 	  esac; \
+ 	  lang=`echo $$cat | sed 's/\$(CATOBJEXT)$$//'`; \
+ 	  dir=$$destdir/$$lang/LC_MESSAGES; \
+@@ -153,12 +155,12 @@
+ 	done
+ 	if test "$(PACKAGE)" = "gettext"; then \
+ 	  if test -r "$(MKINSTALLDIRS)"; then \
+-	    $(MKINSTALLDIRS) $(gettextsrcdir); \
++	    $(MKINSTALLDIRS) $(DESTDIR)$(gettextsrcdir); \
+ 	  else \
+-	    $(SHELL) $(top_srcdir)/mkinstalldirs $(gettextsrcdir); \
++	    $(SHELL) $(top_srcdir)/mkinstalldirs $(DESTDIR)$(gettextsrcdir); \
+ 	  fi; \
+ 	  $(INSTALL_DATA) $(srcdir)/Makefile.in.in \
+-			  $(gettextsrcdir)/Makefile.in.in; \
++			  $(DESTDIR)$(gettextsrcdir)/Makefile.in.in; \
+ 	else \
+ 	  : ; \
+ 	fi

Modified: head/math/oleo/files/patch-src_io-term.c
==============================================================================
--- head/math/oleo/files/patch-src_io-term.c	Fri Feb 14 09:12:01 2014	(r344171)
+++ head/math/oleo/files/patch-src_io-term.c	Fri Feb 14 09:40:28 2014	(r344172)
@@ -1,5 +1,14 @@
---- src/io-term.c.orig	2008-02-08 16:43:28.000000000 +0100
-+++ src/io-term.c	2008-02-08 16:45:06.000000000 +0100
+--- src/io-term.c.orig	2014-02-14 10:32:37.000000000 +0100
++++ src/io-term.c	2014-02-14 10:32:58.000000000 +0100
+@@ -1,7 +1,7 @@
+ /*
+  * $Id: io-term.c,v 1.51 2001/02/13 23:38:06 danny Exp $
+  *
+- * Copyright © 1990, 1992, 1993, 1999, 2000, 2001 Free Software Foundation, Inc.
++ * Copyright 1990, 1992, 1993, 1999, 2000, 2001 Free Software Foundation, Inc.
+  * 
+  * This file is part of Oleo, the GNU Spreadsheet.
+  * 
 @@ -220,6 +220,7 @@
  {
    int	set_opt = 1;
@@ -23,3 +32,12 @@
  
  		if (Preferences[i].cont == 0)
  			return 1;
+@@ -1023,7 +1026,7 @@
+ 	  case 'v':
+ 	  case 'V':
+ 	    printf(_("%s %s\n"), GNU_PACKAGE, VERSION);
+-            printf(_("Copyright © 1992-2000 Free Software Foundation, Inc.\n"));
++            printf(_("Copyright 1992-2000 Free Software Foundation, Inc.\n"));
+             printf(_("%s comes with ABSOLUTELY NO WARRANTY.\n"), GNU_PACKAGE);
+             printf(_("You may redistribute copies of %s\n"), PACKAGE);
+             printf(_("under the terms of the GNU General Public License.\n"));

Modified: head/math/oleo/pkg-plist
==============================================================================
--- head/math/oleo/pkg-plist	Fri Feb 14 09:12:01 2014	(r344171)
+++ head/math/oleo/pkg-plist	Fri Feb 14 09:40:28 2014	(r344172)
@@ -5,7 +5,6 @@ bin/oleo
 %%DATADIR%%/Oleo
 %%DATADIR%%/fr/Oleo
 %%DATADIR%%/nl/Oleo
-%%PORTDOCS%%%%DOCSDIR%%/oleo.html
 @dirrm %%DATADIR%%/nl
 @dirrm %%DATADIR%%/fr
 @dirrm %%DATADIR%%


More information about the svn-ports-head mailing list