aboutsummaryrefslogtreecommitdiffstats
path: root/Library
diff options
context:
space:
mode:
authorAdam Vandenberg2010-02-09 09:38:19 -0800
committerAdam Vandenberg2010-02-09 09:43:33 -0800
commit18fde99d8f128c1f327b3a5d5bb5cdab2407c9ef (patch)
treeb6f0f676b4cb922da97b0903a230a8939fe8c9f6 /Library
parent4be931977b8ebcb98f7e359af9335a0a7c13a046 (diff)
downloadhomebrew-18fde99d8f128c1f327b3a5d5bb5cdab2407c9ef.tar.bz2
apg - use manual install steps and clear more Makefile flags
Diffstat (limited to 'Library')
-rw-r--r--Library/Formula/apg.rb58
1 files changed, 11 insertions, 47 deletions
diff --git a/Library/Formula/apg.rb b/Library/Formula/apg.rb
index 19bae04b3..edd0ce542 100644
--- a/Library/Formula/apg.rb
+++ b/Library/Formula/apg.rb
@@ -5,54 +5,18 @@ class Apg <Formula
homepage 'http://www.adel.nursat.kz/apg/'
md5 '3b3fc4f11e90635519fe627c1137c9ac'
- def patches
- DATA
- end
-
def install
-# system "./configure", "--prefix=#{prefix}", "--disable-debug", "--disable-dependency-tracking"
+ inreplace "Makefile" do |s|
+ s.remove_make_var! ["CC", "FLAGS", "LIBS", "LIBM"]
+ end
+
system "make standalone"
- system "make install INSTALL_PREFIX=#{prefix}"
+
+ # Install manually
+ bin.install "apg"
+ man1.install "doc/man/apg.1"
+
+ bin.install "apgbfm"
+ man1.install "doc/man/apgbfm.1"
end
end
-
-__END__
---- ./Makefile.old 2010-02-09 16:47:32.000000000 +0200
-+++ ./Makefile 2010-02-09 16:47:44.000000000 +0200
-@@ -13,8 +13,6 @@
- #
- # You should comment the line below ('LIBS= -lcrypt')for QNX RTP
- # 6.1.0, OpenBSD 2.8 and above, WIN32 (+MinGW)
--LIBS = -lcrypt
--LIBM = -lm
- # Use lines below for cygwin
- # LIBS =
- # LIBM =
-@@ -109,23 +107,25 @@
- strip ${CS_PROGNAME}
- strip ${BFM_PROGNAME}
-
-+.PHONY: install
-+
- install:
- if test -x ./apg; then \
- ./mkinstalldirs ${INSTALL_PREFIX}${APG_BIN_DIR}; \
- ./mkinstalldirs ${INSTALL_PREFIX}${APG_MAN_DIR}; \
--./install-sh -c -m 0755 -o root -g ${FIND_GROUP} ./apg ${INSTALL_PREFIX}${APG_BIN_DIR}; \
-+./install-sh -c -m 0755 ./apg ${INSTALL_PREFIX}${APG_BIN_DIR}; \
- ./install-sh -c -m 0444 ./doc/man/apg.1 ${INSTALL_PREFIX}${APG_MAN_DIR}; \
- fi
- if test -x ./apgd; then \
- ./mkinstalldirs ${INSTALL_PREFIX}${APGD_BIN_DIR}; \
- ./mkinstalldirs ${INSTALL_PREFIX}${APGD_MAN_DIR}; \
--./install-sh -c -m 0755 -o root -g ${FIND_GROUP} ./apgd ${INSTALL_PREFIX}${APGD_BIN_DIR}; \
-+./install-sh -c -m 0755 ./apgd ${INSTALL_PREFIX}${APGD_BIN_DIR}; \
- ./install-sh -c -m 0444 ./doc/man/apgd.8 ${INSTALL_PREFIX}${APGD_MAN_DIR}; \
- fi
- if test -x ./apgbfm; then \
- ./mkinstalldirs ${INSTALL_PREFIX}${APG_BIN_DIR}; \
- ./mkinstalldirs ${INSTALL_PREFIX}${APG_MAN_DIR}; \
--./install-sh -c -m 0755 -o root -g ${FIND_GROUP} ./apgbfm ${INSTALL_PREFIX}${APG_BIN_DIR}; \
-+./install-sh -c -m 0755 ./apgbfm ${INSTALL_PREFIX}${APG_BIN_DIR}; \
- ./install-sh -c -m 0444 ./doc/man/apgbfm.1 ${INSTALL_PREFIX}${APG_MAN_DIR}; \
- fi