mirror of
https://git.FreeBSD.org/ports.git
synced 2024-11-27 00:57:50 +00:00
- Fix package so it registers shared libraries in ocaml register
PR: ports/73194 Submitted by: stephane (maintainer)
This commit is contained in:
parent
88f49b73ac
commit
5ffb27574a
Notes:
svn2git
2021-03-31 03:12:20 +00:00
svn path=/head/; revision=120354
@ -7,6 +7,7 @@
|
||||
|
||||
PORTNAME= net
|
||||
PORTVERSION= 0.98
|
||||
PORTREVISION= 1
|
||||
CATEGORIES= www
|
||||
MASTER_SITES= ${MASTER_SITE_SOURCEFORGE}
|
||||
MASTER_SITE_SUBDIR= ocamlnet
|
||||
|
5
www/ocaml-net/pkg-deinstall
Normal file
5
www/ocaml-net/pkg-deinstall
Normal file
@ -0,0 +1,5 @@
|
||||
#!/bin/sh
|
||||
|
||||
mv ${PKG_PREFIX}/lib/ocaml/ld.conf ${PKG_PREFIX}/lib/ocaml/ld.conf.tmp
|
||||
grep -v netstring ${PKG_PREFIX}/lib/ocaml/ld.conf.tmp > ${PKG_PREFIX}/lib/ocaml/ld.conf
|
||||
rm -f ${PKG_PREFIX}/lib/ocaml/ld.conf.tmp
|
5
www/ocaml-net/pkg-install
Normal file
5
www/ocaml-net/pkg-install
Normal file
@ -0,0 +1,5 @@
|
||||
#!/bin/sh
|
||||
|
||||
if ! grep "${PKG_PREFIX}/lib/ocaml/site-lib/netstring" ${PKG_PREFIX}/lib/ocaml/ld.conf >/dev/null 2>&1; then
|
||||
echo "${PKG_PREFIX}/lib/ocaml/site-lib/netstring" >> ${PKG_PREFIX}/lib/ocaml/ld.conf
|
||||
fi
|
Loading…
Reference in New Issue
Block a user