Ignore:
Timestamp:
Jan 27, 2016, 10:14:52 AM (3 years ago)
Author:
and.damore@…
Message:

port sc: edit description, fix DESTDIR support in makefile so man page doesn't embedd the desroot path for the tutorial; nomaintainer

Location:
trunk/dports/finance/sc
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/dports/finance/sc/Portfile

    r139469 r145158  
    66name                sc
    77version             7.16
    8 revision            1
     8revision            2
    99maintainers         nomaintainer
    1010
    1111categories          finance
    12 description         ${name} : the Venerable Spreadsheet Calculator
    13 long_description    ${description}
     12description         sc is the Venerable Spreadsheet Calculator
     13long_description    sc is a free curses-based spreadsheet program that uses key bindings similar to vi and less.
    1414
    1515platforms           darwin
     
    3939build.args-append   CC="${configure.cc} ${configure.cppflags} ${configure.cflags} [get_canonical_archflags]"
    4040
    41 destroot.destdir    prefix=${destroot}${prefix}
     41destroot.destdir-append    prefix=${prefix}
    4242
    4343livecheck.type      none
  • trunk/dports/finance/sc/files/Makefile.diff

    r100001 r145158  
    1 --- Makefile.old        2012-09-01 22:29:49.000000000 +0200
    2 +++ Makefile    2012-09-01 22:30:07.000000000 +0200
    3 @@ -26,7 +26,7 @@
     1--- Makefile.orig       2002-09-14 05:39:56.000000000 +0200
     2+++ Makefile    2016-01-27 11:03:26.000000000 +0100
     3@@ -26,13 +26,13 @@
    44 EXDIR=${prefix}/bin
    55 
     
    1010 MANMODE=644
    1111 
     12 # This is where the library file (tutorial) goes.
     13 #LIBDIR=/usr/local/share/$(name) # reno
     14-LIBDIR=${prefix}/lib/$(name)
     15+LIBDIR=${prefix}/share/doc/$(name)
     16 LIBRARY=-DLIBDIR=\"${LIBDIR}\"
     17 
     18 # Set SIMPLE for lex.c if you don't want arrow keys or lex.c blows up
     19@@ -499,32 +499,32 @@
     20         $(MANDIR)/p$(name).$(MANEXT)
     21 
     22 $(EXDIR)/$(name): $(name)
     23-       cp $(name) $(EXDIR)
     24-       strip $(EXDIR)/$(name)
     25+       cp $(name) $(DESTDIR)$(EXDIR)/
     26+       strip $(DESTDIR)$(EXDIR)/$(name)
     27 
     28 $(EXDIR)/$(name)qref: $(name)qref
     29-       cp $(name)qref $(EXDIR)
     30-       strip $(EXDIR)/$(name)qref
     31+       cp $(name)qref $(DESTDIR)$(EXDIR)/
     32+       strip $(DESTDIR)$(EXDIR)/$(name)qref
     33 
     34 $(EXDIR)/p$(name): p$(name)
     35-       cp p$(name) $(EXDIR)
     36-       strip $(EXDIR)/p$(name)
     37+       cp p$(name) $(DESTDIR)$(EXDIR)/
     38+       strip $(DESTDIR)$(EXDIR)/p$(name)
     39 
     40 $(LIBDIR)/tutorial: tutorial.sc $(LIBDIR)
     41-       -mkdir -p $(LIBDIR)/plugins
     42-       cp tutorial.sc $(LIBDIR)/tutorial.$(name)
     43-       chmod $(MANMODE) $(LIBDIR)/tutorial.$(name)
     44+       -mkdir -p $(DESTDIR)$(LIBDIR)/plugins
     45+       cp tutorial.sc $(DESTDIR)$(LIBDIR)/tutorial.$(name)
     46+       chmod $(MANMODE) $(DESTDIR)$(LIBDIR)/tutorial.$(name)
     47 
     48 $(LIBDIR):
     49-       mkdir $(LIBDIR)
     50+       mkdir $(DESTDIR)$(LIBDIR)
     51 
     52 $(MANDIR)/$(name).$(MANEXT): $(name).1
     53-       cp $(name).1 $(MANDIR)/$(name).$(MANEXT)
     54-       chmod $(MANMODE) $(MANDIR)/$(name).$(MANEXT)
     55+       cp $(name).1 $(DESTDIR)$(MANDIR)/$(name).$(MANEXT)
     56+       chmod $(MANMODE) $(DESTDIR)$(MANDIR)/$(name).$(MANEXT)
     57 
     58 $(MANDIR)/p$(name).$(MANEXT): p$(name).1
     59-       cp p$(name).1 $(MANDIR)/p$(name).$(MANEXT)
     60-       chmod $(MANMODE) $(MANDIR)/p$(name).$(MANEXT)
     61+       cp p$(name).1 $(DESTDIR)$(MANDIR)/p$(name).$(MANEXT)
     62+       chmod $(MANMODE) $(DESTDIR)$(MANDIR)/p$(name).$(MANEXT)
     63 
     64 uninstall:
     65        rm -f $(EXDIR)/$(name)
Note: See TracChangeset for help on using the changeset viewer.