[145158] trunk/dports/finance/sc

and.damore at macports.org and.damore at macports.org
Wed Jan 27 02:14:52 PST 2016


Revision: 145158
          https://trac.macports.org/changeset/145158
Author:   and.damore at macports.org
Date:     2016-01-27 02:14:52 -0800 (Wed, 27 Jan 2016)
Log Message:
-----------
port sc: edit description, fix DESTDIR support in makefile so man page doesn' embedd the desroot path for the tutorial; nomaintainer

Modified Paths:
--------------
    trunk/dports/finance/sc/Portfile
    trunk/dports/finance/sc/files/Makefile.diff

Modified: trunk/dports/finance/sc/Portfile
===================================================================
--- trunk/dports/finance/sc/Portfile	2016-01-27 03:47:20 UTC (rev 145157)
+++ trunk/dports/finance/sc/Portfile	2016-01-27 10:14:52 UTC (rev 145158)
@@ -5,12 +5,12 @@
 
 name                sc
 version             7.16
-revision            1
+revision            2
 maintainers         nomaintainer
 
 categories          finance
-description         ${name} : the Venerable Spreadsheet Calculator
-long_description    ${description}
+description         sc is the Venerable Spreadsheet Calculator
+long_description    sc is a free curses-based spreadsheet program that uses key bindings similar to vi and less.
 
 platforms           darwin
 
@@ -38,6 +38,6 @@
 
 build.args-append   CC="${configure.cc} ${configure.cppflags} ${configure.cflags} [get_canonical_archflags]"
 
-destroot.destdir    prefix=${destroot}${prefix}
+destroot.destdir-append    prefix=${prefix}
 
 livecheck.type      none

Modified: trunk/dports/finance/sc/files/Makefile.diff
===================================================================
--- trunk/dports/finance/sc/files/Makefile.diff	2016-01-27 03:47:20 UTC (rev 145157)
+++ trunk/dports/finance/sc/files/Makefile.diff	2016-01-27 10:14:52 UTC (rev 145158)
@@ -1,6 +1,6 @@
---- Makefile.old	2012-09-01 22:29:49.000000000 +0200
-+++ Makefile	2012-09-01 22:30:07.000000000 +0200
-@@ -26,7 +26,7 @@
+--- Makefile.orig	2002-09-14 05:39:56.000000000 +0200
++++ Makefile	2016-01-27 11:03:26.000000000 +0100
+@@ -26,13 +26,13 @@
  EXDIR=${prefix}/bin
  
  # This is where the man page goes.
@@ -9,3 +9,57 @@
  MANEXT=1
  MANMODE=644
  
+ # This is where the library file (tutorial) goes.
+ #LIBDIR=/usr/local/share/$(name) # reno
+-LIBDIR=${prefix}/lib/$(name)
++LIBDIR=${prefix}/share/doc/$(name)
+ LIBRARY=-DLIBDIR=\"${LIBDIR}\"
+ 
+ # Set SIMPLE for lex.c if you don't want arrow keys or lex.c blows up
+@@ -499,32 +499,32 @@
+ 	 $(MANDIR)/p$(name).$(MANEXT)
+ 
+ $(EXDIR)/$(name): $(name)
+-	cp $(name) $(EXDIR)
+-	strip $(EXDIR)/$(name)
++	cp $(name) $(DESTDIR)$(EXDIR)/
++	strip $(DESTDIR)$(EXDIR)/$(name)
+ 
+ $(EXDIR)/$(name)qref: $(name)qref
+-	cp $(name)qref $(EXDIR)
+-	strip $(EXDIR)/$(name)qref
++	cp $(name)qref $(DESTDIR)$(EXDIR)/
++	strip $(DESTDIR)$(EXDIR)/$(name)qref
+ 
+ $(EXDIR)/p$(name): p$(name)
+-	cp p$(name) $(EXDIR)
+-	strip $(EXDIR)/p$(name)
++	cp p$(name) $(DESTDIR)$(EXDIR)/
++	strip $(DESTDIR)$(EXDIR)/p$(name)
+ 
+ $(LIBDIR)/tutorial: tutorial.sc $(LIBDIR)
+-	-mkdir -p $(LIBDIR)/plugins
+-	cp tutorial.sc $(LIBDIR)/tutorial.$(name)
+-	chmod $(MANMODE) $(LIBDIR)/tutorial.$(name)
++	-mkdir -p $(DESTDIR)$(LIBDIR)/plugins
++	cp tutorial.sc $(DESTDIR)$(LIBDIR)/tutorial.$(name)
++	chmod $(MANMODE) $(DESTDIR)$(LIBDIR)/tutorial.$(name)
+ 
+ $(LIBDIR):
+-	mkdir $(LIBDIR)
++	mkdir $(DESTDIR)$(LIBDIR)
+ 
+ $(MANDIR)/$(name).$(MANEXT): $(name).1
+-	cp $(name).1 $(MANDIR)/$(name).$(MANEXT)
+-	chmod $(MANMODE) $(MANDIR)/$(name).$(MANEXT)
++	cp $(name).1 $(DESTDIR)$(MANDIR)/$(name).$(MANEXT)
++	chmod $(MANMODE) $(DESTDIR)$(MANDIR)/$(name).$(MANEXT)
+ 
+ $(MANDIR)/p$(name).$(MANEXT): p$(name).1
+-	cp p$(name).1 $(MANDIR)/p$(name).$(MANEXT)
+-	chmod $(MANMODE) $(MANDIR)/p$(name).$(MANEXT)
++	cp p$(name).1 $(DESTDIR)$(MANDIR)/p$(name).$(MANEXT)
++	chmod $(MANMODE) $(DESTDIR)$(MANDIR)/p$(name).$(MANEXT)
+ 
+ uninstall:
+ 	rm -f $(EXDIR)/$(name)
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.macosforge.org/pipermail/macports-changes/attachments/20160127/a2adcf51/attachment.html>


More information about the macports-changes mailing list