diff options
author | daichi <daichi@FreeBSD.org> | 2003-07-01 11:39:04 +0000 |
---|---|---|
committer | daichi <daichi@FreeBSD.org> | 2003-07-01 11:39:04 +0000 |
commit | 005404c8f99cf258027d1ff4fb4afa694ce494e8 (patch) | |
tree | eca55180db9a9509c2ac22789675df9aea081206 /devel/hypersrc | |
parent | ad27b07ec7c3f754a63c391e8e456c101dd3c823 (diff) | |
download | FreeBSD-ports-005404c8f99cf258027d1ff4fb4afa694ce494e8.zip FreeBSD-ports-005404c8f99cf258027d1ff4fb4afa694ce494e8.tar.gz |
update devel/hypersrc: 5.3.8 --> 5.3.9
PR: 53283
Submitted by: KATO Tsuguru <tkato@prontomail.com>
Diffstat (limited to 'devel/hypersrc')
-rw-r--r-- | devel/hypersrc/Makefile | 12 | ||||
-rw-r--r-- | devel/hypersrc/distinfo | 2 | ||||
-rw-r--r-- | devel/hypersrc/files/patch-Makefile | 79 |
3 files changed, 86 insertions, 7 deletions
diff --git a/devel/hypersrc/Makefile b/devel/hypersrc/Makefile index 6fee7e5..2f2553e 100644 --- a/devel/hypersrc/Makefile +++ b/devel/hypersrc/Makefile @@ -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 @@ MASTER_SITE_SUBDIR= latest old 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 @@ WRKSRC= ${WRKDIR}/${PORTNAME} 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 --git a/devel/hypersrc/distinfo b/devel/hypersrc/distinfo index f740eae..e6e8cac 100644 --- a/devel/hypersrc/distinfo +++ b/devel/hypersrc/distinfo @@ -1 +1 @@ -MD5 (hypersrc-5.3.8.tar.gz) = 76339e8ecf30b9a8b19aaa6220433eea +MD5 (hypersrc-5.3.9.tar.gz) = af2a8d5c1066913361dffc2f536f8293 diff --git a/devel/hypersrc/files/patch-Makefile b/devel/hypersrc/files/patch-Makefile new file mode 100644 index 0000000..a05cf98 --- /dev/null +++ b/devel/hypersrc/files/patch-Makefile @@ -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 |