Date: Fri, 4 Aug 2006 23:04:40 +0400 From: Stanislav Sedov <ssedov@mbsd.msk.ru> To: ports@freebsd.org Subject: adding additional empty target in bsd.port.mk Message-ID: <20060804230440.67af2ea0@localhost>
next in thread | raw e-mail | index | archive | help
--Sig_QqU56X/AECIj_AxLAaYEmg3 Content-Type: text/plain; charset=KOI8-R Content-Transfer-Encoding: quoted-printable Hi! Some of some ports install files into shared location, e.g. several ruby ports installs docs into subdirectory under ${RUBY_DOCDIR}, ocaml ports - into subdirectory of ${OCAML_DOCSDIR}. As this directories might not exists before installing, they should be removed after uninstall, so there should be something about "@dirrmtry share/doc/ruby18" in pkg-plist. The problem begins when we are trying to use PORTDOCS macro. In that case PORTDOCS entries will be added in plist in add-plist-docs target of bsd.port.mk, and therefore this "@dirrmtry share/doc/ruby18" should be added after add-plist-docs target either it will not be deleted. But there are no free targets after add-plist-docs... One of possible solutions is to redefine add-plist-post target, that currently assigned for non-standard PREFIX processing. But isn't very good, since we need to make a copy of original add-plist-target in our Makefile. Furthermore it can't be used in some cases, where target can be defined only after inclusion of bsd.port.pre.mk (such is my case of inclusion of bsd.ocaml.mk = - I need to add some plist entries in bsd.ocaml.mk after all other entries, but this file should be included only after bsd.port.pre.mk, as I need some variables defined) Is it possible to add one more empty target after add-plist-docs to use by ports? I can investigate a patch, although it will be pretty simple. Thanks! --=20 Stanislav Sedov MBSD labs, Inc. <ssedov@mbsd.msk.ru> =F2=CF=D3=D3=C9=D1, =ED=CF=D3=CB=D7=C1 http://mbsd.msk.ru -------------------------------------------------------------------- If the facts don't fit the theory, change the facts. -- A. Einstein -------------------------------------------------------------------- PGP fingerprint: F21E D6CC 5626 9609 6CE2 A385 2BF5 5993 EB26 9581 --Sig_QqU56X/AECIj_AxLAaYEmg3 Content-Type: application/pgp-signature; name=signature.asc Content-Disposition: attachment; filename=signature.asc -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.3 (FreeBSD) iD8DBQFE05pMK/VZk+smlYERAqZoAJwO8trdXFBUh8o6eznD2Q79J99elwCcCua/ D77kADvDKLiu1eGGtNoCw6c= =UtQu -----END PGP SIGNATURE----- --Sig_QqU56X/AECIj_AxLAaYEmg3--
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20060804230440.67af2ea0>