rhash 1.3.3
Closes Homebrew/homebrew#39613. Signed-off-by: Xu Cheng <xucheng@me.com>
This commit is contained in:
parent
6b05acdd95
commit
7cddabbc10
1 changed files with 9 additions and 7 deletions
|
@ -1,7 +1,10 @@
|
|||
class Rhash < Formula
|
||||
homepage 'http://rhash.anz.ru/'
|
||||
url 'https://downloads.sourceforge.net/project/rhash/rhash/1.3.2/rhash-1.3.2-src.tar.gz'
|
||||
sha256 '074224f59fe69969108e1ebc23ee406a7f2eff95d9dc1c7aa8eaebb85c8142dd'
|
||||
homepage "http://rhash.anz.ru/"
|
||||
url "https://downloads.sourceforge.net/project/rhash/rhash/1.3.3/rhash-1.3.3-src.tar.gz"
|
||||
mirror "https://mirrors.kernel.org/debian/pool/main/r/rhash/rhash_1.3.3.orig.tar.gz"
|
||||
sha256 "5b520b597bd83f933d316fce1382bb90e0b0b87b559b8c9c9a197551c935315a"
|
||||
|
||||
head "https://github.com/rhash/RHash.git"
|
||||
|
||||
bottle do
|
||||
cellar :any
|
||||
|
@ -19,9 +22,8 @@ class Rhash < Formula
|
|||
ENV.j1
|
||||
|
||||
system "make", "lib-static", "lib-shared", "all", "CC=#{ENV.cc}"
|
||||
|
||||
system "make", "install-lib-static", "install-lib-shared", "install", "PREFIX=",
|
||||
"DESTDIR=#{prefix}", "CC=#{ENV.cc}"
|
||||
system "make", "install-lib-static", "install-lib-shared", "install",
|
||||
"PREFIX=", "DESTDIR=#{prefix}", "CC=#{ENV.cc}"
|
||||
end
|
||||
|
||||
test do
|
||||
|
@ -49,7 +51,7 @@ __END__
|
|||
|
||||
# shared and static libraries
|
||||
$(SONAME): $(SOURCES)
|
||||
- sed -n '1s/.*/{ global:/p; s/^RHASH_API.* \([a-z0-9_]\+\)(.*/ \1;/p; $$s/.*/local: *; };/p' $(LIB_HEADERS) > exports.sym
|
||||
- sed -n '1s/.*/{ global:/p; s/^RHASH_API.* \([a-z0-9_]\+\)(.*/ \1;/p; $$s/.*/local: *; };/p' $(SO_HEADERS) > exports.sym
|
||||
- $(CC) -fpic $(ALLCFLAGS) -shared $(SOURCES) -Wl,--version-script,exports.sym,-soname,$(SONAME) $(LIBLDFLAGS) -o $@
|
||||
+ $(CC) -fpic $(ALLCFLAGS) -dynamiclib $(SOURCES) $(LIBLDFLAGS) -Wl,-install_name,$(PREFIX)/lib/$@ -o $@
|
||||
ln -s $(SONAME) $(SOLINK)
|
||||
|
|
Loading…
Reference in a new issue