Date: Sat, 14 Jun 2003 00:45:25 +0900 From: KATO Tsuguru <tkato@prontomail.com> To: FreeBSD-gnats-submit@FreeBSD.org Subject: ports/53283: Update port: devel/hypersrc to 5.3.9 Message-ID: <20030614004525.59c58d3d.tkato@prontomail.com> Resent-Message-ID: <200306131550.h5DFoD1N069179@freefall.freebsd.org>
next in thread | raw e-mail | index | archive | help
>Number: 53283 >Category: ports >Synopsis: Update port: devel/hypersrc to 5.3.9 >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: Fri Jun 13 08:50:12 PDT 2003 >Closed-Date: >Last-Modified: >Originator: KATO Tsuguru >Release: FreeBSD 4.8-RELEASE i386 >Organization: >Environment: >Description: - Update to version 5.3.9 New file: files/patch-Makefile >How-To-Repeat: >Fix: diff -urN /usr/ports/devel/hypersrc/Makefile devel/hypersrc/Makefile --- /usr/ports/devel/hypersrc/Makefile Mon Jun 9 22:10:54 2003 +++ devel/hypersrc/Makefile Thu Jun 12 01:16:11 2003 @@ -7,7 +7,7 @@ # PORTNAME= hypersrc -PORTVERSION= 5.3.8 +PORTVERSION= 5.3.9 CATEGORIES= devel MASTER_SITES= ftp://ftp.jimbrooks.org/hypersrc/%SUBDIR%/ \ http://www.home.earthlink.net/~jebrooks1/ftp/hypersrc/%SUBDIR%/ @@ -16,8 +16,6 @@ MAINTAINER= ports@FreeBSD.org COMMENT= Source code browser -BROKEN= "Installs files into /root" - RUN_DEPENDS= exctags:${PORTSDIR}/devel/ctags WRKSRC= ${WRKDIR}/${PORTNAME} @@ -25,14 +23,16 @@ USE_PERL5= yes USE_GNOME= gnomelibs USE_BISON= yes -USE_REINPLACE= yes USE_GMAKE= yes MAKEFILE= GNUmakefile MAN1= hypersrc.1 post-patch: - @${REINPLACE_CMD} -e 's|"ctags"|"exctags"|g' ${WRKSRC}/Hypersrc.pl - @${REINPLACE_CMD} -e 's|"-i +m -x -u"|"-x"|g' ${WRKSRC}/ctags.pl + @${PERL} -pi -e 's|"ctags"|"exctags"|g' ${WRKSRC}/Hypersrc.pl + @${PERL} -pi -e 's|"-i +m -x -u"|"-x"|g' ${WRKSRC}/ctags.pl + +post-install: + ${INSTALL_MAN} ${WRKSRC}/hypersrc.1 ${MANPREFIX}/man/man1 .include <bsd.port.mk> diff -urN /usr/ports/devel/hypersrc/distinfo devel/hypersrc/distinfo --- /usr/ports/devel/hypersrc/distinfo Mon Feb 10 19:55:52 2003 +++ devel/hypersrc/distinfo Thu Jun 12 01:04:26 2003 @@ -1 +1 @@ -MD5 (hypersrc-5.3.8.tar.gz) = 76339e8ecf30b9a8b19aaa6220433eea +MD5 (hypersrc-5.3.9.tar.gz) = af2a8d5c1066913361dffc2f536f8293 diff -urN /usr/ports/devel/hypersrc/files/patch-Makefile devel/hypersrc/files/patch-Makefile --- /usr/ports/devel/hypersrc/files/patch-Makefile Thu Jan 1 09:00:00 1970 +++ devel/hypersrc/files/patch-Makefile Sat Jan 25 05:52:50 2003 @@ -0,0 +1,79 @@ +--- GNUmakefile.orig Fri Jan 17 21:33:25 2003 ++++ GNUmakefile Sat Jan 25 05:52:32 2003 +@@ -8,11 +8,7 @@ + + # Where to install. + # +-ifeq ($(USER),root) +- INSTALL_DIR=/usr/local/bin +-else +- INSTALL_DIR=$(HOME)/bin +-endif ++ INSTALL_DIR=${PREFIX}/bin + + PROGNAME = hypersrc + OUT = out +@@ -70,7 +66,7 @@ + else + + ifndef DEBUG +-C_OPTIMIZE = -O2 -finline-functions ++C_OPTIMIZE = ${CFLAGS} + else + C_OPTIMIZE = -O + endif +@@ -136,10 +132,10 @@ + + # ----- editing the rest should usually be unnecessary ------------------------ + +-CC = gcc -c +-CC_FLAGS = -I$(INC_DIR) $(PROF_OPTS) $(C_DEBUG) $(C_OPTIMIZE) $(C_OPTS) $(C_WARNINGS) -pipe `$(GTK_CONFIG) --cflags` `gnome-config --cflags gnomeui` ++#CC = gcc -c ++CC_FLAGS = -I$(INC_DIR) $(PROF_OPTS) $(C_DEBUG) $(C_OPTIMIZE) $(C_OPTS) $(C_WARNINGS) `gnome-config --cflags gnomeui` + LD = gcc +-LD_FLAGS = $(PROF_OPTS) -pipe `$(GTK_CONFIG) --libs` `gnome-config --libs gnomeui` ++LD_FLAGS = $(PROF_OPTS) `gnome-config --libs gnomeui` + C_SRCS = $(addprefix $(SRC)/,$(C_SRCS_)) + C_OBJS_ = $(C_SRCS_:.c=.o) + C_OBJS = $(addprefix $(OUT)/,$(C_OBJS_)) +@@ -171,7 +167,7 @@ + $(LD) -o $(OUT)/hypersrc $(C_OBJS) $(LD_FLAGS) $(LIBS) $(OUT)/libparser.a + + $(OUT)/%.o: $(SRC)/%.c +- $(CC) -o $@ $(CC_FLAGS) $(subst $(OUT)/,$(SRC)/,$<) ++ $(CC) -c -o $@ $(CC_FLAGS) $(subst $(OUT)/,$(SRC)/,$<) + + # ----------------------------------------------------------------------------- + # parser (lex/yacc code that builds func graph/tree) +@@ -209,13 +205,13 @@ + mv y.tab.[cho] $(OUT) + + $(OUT)/y.tab.o: $(OUT)/y.tab.c +- $(CC) -o $@ $(CC_FLAGS_PARSER) $(OUT)/y.tab.c ++ $(CC) -c -o $@ $(CC_FLAGS_PARSER) $(OUT)/y.tab.c + + $(OUT)/lex.yy.o: $(OUT)/lex.yy.c +- $(CC) -o $@ $(CC_FLAGS_PARSER) $(OUT)/lex.yy.c ++ $(CC) -c -o $@ $(CC_FLAGS_PARSER) $(OUT)/lex.yy.c + + $(OUT)/str_heap.o: $(SRC)/str_heap.c $(INC_DIR)/str_heap.h +- $(CC) -o $@ $(CC_FLAGS_PARSER) $(SRC)/str_heap.c ++ $(CC) -c -o $@ $(CC_FLAGS_PARSER) $(SRC)/str_heap.c + + # ----------------------------------------------------------------------------- + +@@ -233,10 +229,11 @@ + rm -f $(INSTALL_DIR)/ctags.pl + cat Hypersrc.pl \ + | sed 's|\$hypersrc = "hypersrc"|\$hypersrc = "${INSTALL_DIR}/hypersrc"|' \ +- | sed 's|\$ctags_pl = "ctags.pl"|\$ctags_pl = "${INSTALL_DIR}/ctags.pl"|' > $(INSTALL_DIR)/Hypersrc.pl ++ | sed 's|\$ctags_pl = "ctags.pl"|\$ctags_pl = "${INSTALL_DIR}/ctags.pl"|' > $(OUT)/Hypersrc.pl ++ ${BSD_INSTALL_SCRIPT} $(OUT)/Hypersrc.pl $(INSTALL_DIR) + @ +- cp $(OUT)/hypersrc $(INSTALL_DIR) +- cp ctags.pl $(INSTALL_DIR) ++ ${BSD_INSTALL_PROGRAM} $(OUT)/hypersrc $(INSTALL_DIR) ++ ${BSD_INSTALL_SCRIPT} ctags.pl $(INSTALL_DIR) + @ + chmod +rx $(INSTALL_DIR)/hypersrc + chmod +rx $(INSTALL_DIR)/Hypersrc.pl >Release-Note: >Audit-Trail: >Unformatted:
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20030614004525.59c58d3d.tkato>