1
0
mirror of https://git.FreeBSD.org/ports.git synced 2025-01-11 07:22:22 +00:00

update devel/hypersrc: 5.3.8 --> 5.3.9

PR:		53283
Submitted by:	KATO Tsuguru <tkato@prontomail.com>
This commit is contained in:
Daichi GOTO 2003-07-01 11:39:04 +00:00
parent e737a05c90
commit 2054dca517
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/head/; revision=83981
3 changed files with 86 additions and 7 deletions

View File

@ -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>

View File

@ -1 +1 @@
MD5 (hypersrc-5.3.8.tar.gz) = 76339e8ecf30b9a8b19aaa6220433eea
MD5 (hypersrc-5.3.9.tar.gz) = af2a8d5c1066913361dffc2f536f8293

View File

@ -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