From owner-freebsd-ports@FreeBSD.ORG Sun Jun 9 22:20:33 2013 Return-Path: Delivered-To: ports@FreeBSD.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by hub.freebsd.org (Postfix) with ESMTP id 73746820 for ; Sun, 9 Jun 2013 22:20:33 +0000 (UTC) (envelope-from bdrewery@FreeBSD.org) Received: from freefall.freebsd.org (freefall.freebsd.org [IPv6:2001:1900:2254:206c::16:87]) by mx1.freebsd.org (Postfix) with ESMTP id 5DEEE17D5 for ; Sun, 9 Jun 2013 22:20:33 +0000 (UTC) Received: from freefall.freebsd.org (localhost [127.0.0.1]) by freefall.freebsd.org (8.14.7/8.14.7) with ESMTP id r59MKX8K034951 for ; Sun, 9 Jun 2013 22:20:33 GMT (envelope-from bdrewery@freefall.freebsd.org) Received: (from bdrewery@localhost) by freefall.freebsd.org (8.14.7/8.14.7/Submit) id r59MKXKG034948 for ports@FreeBSD.org; Sun, 9 Jun 2013 22:20:33 GMT (envelope-from bdrewery) Received: (qmail 46092 invoked from network); 9 Jun 2013 17:20:31 -0500 Received: from unknown (HELO ?10.10.1.133?) (freebsd@shatow.net@10.10.1.133) by sweb.xzibition.com with ESMTPA; 9 Jun 2013 17:20:31 -0500 Message-ID: <51B4FFAD.9090105@FreeBSD.org> Date: Sun, 09 Jun 2013 17:20:29 -0500 From: Bryan Drewery Organization: FreeBSD User-Agent: Mozilla/5.0 (Windows NT 6.1; WOW64; rv:17.0) Gecko/20130509 Thunderbird/17.0.6 MIME-Version: 1.0 To: Baptiste Daroussin Subject: Re: [CFT] New helpers now that new options frameworks allow them :) References: <20130609221208.GU35160@ithaqua.etoilebsd.net> In-Reply-To: <20130609221208.GU35160@ithaqua.etoilebsd.net> X-Enigmail-Version: 1.5.1 OpenPGP: id=3C9B0CF9; url=http://www.shatow.net/bryan/bryan.asc Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="----enig2IFANJHEQXURDUVNHJQGM" Cc: ports@FreeBSD.org X-BeenThere: freebsd-ports@freebsd.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: Porting software to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 09 Jun 2013 22:20:33 -0000 This is an OpenPGP/MIME signed message (RFC 4880 and 3156) ------enig2IFANJHEQXURDUVNHJQGM Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable On 6/9/2013 5:12 PM, Baptiste Daroussin wrote: > Hi, >=20 > Here is a couple of new helpers that the new options framework allows. >=20 > To simplify some ports here is a couple of helpers I propose to add to = the ports > tree: >=20 > OPTIONS_SUB=3D yes >=20 > if set, the framework will automatically some new PLIST_SUB: > for example: OPTIONS_DEFINE=3D OPT1 >=20 > if OPT1 is set OPT1=3D"" will be added to PLIST_SUB > if OPT1 is unset OPT1=3D"@comment " will be added to the PLIST_SUB >=20 > OPT1_CONFIGURE_ENABLE=3D option >=20 > if OPT1 is set --enable-option will be added to CONFIGURE_ARGS > if OPT1 is unset --disable-option will be added to CONFIGURE_ARGS >=20 > OPT1_CONFIGURE_ON=3D --with-bla > OPT1_CONFIGURE_OFF=3D --no-something >=20 > if OPT1 is set --with-bla will be added to CONFIGURE_ARGS > if OPT1 is unset --no-something will be added to CONFIGURE_ARGS >=20 > OPT1_CFLAGS > OPT1_LDFLAGS > OPT1_CXXFLAGS > OPT1_MAKE_ENV > OPT1_CONFIGURE_ENV >=20 > if OPT1 is set the flags will be appended to the corresponding MACROS. >=20 > OPT1_USES=3D bla >=20 > if OP1 is set bla will be added to USES >=20 > OPT1_TYPE_DEPENDS=3D XXX:${PORTSDIR}/cat/port >=20 > with TYPE being PKG EXTRACT PATCH FETCH BUILD LIB or RUN >=20 > Will add the given dependency to the right place if OPT1 is set >=20 > Patch is here: > http://people.freebsd.org/~bapt/optionsng.diff >=20 > An example of usage is: > http://people.freebsd.org/~bapt/zsh-new-options.diff >=20 > (on top of the zsh Makefile) >=20 > Any opinion? >=20 > regards, > Bapt >=20 Great idea. All tested here, works great. --=20 Regards, Bryan Drewery ------enig2IFANJHEQXURDUVNHJQGM Content-Type: application/pgp-signature; name="signature.asc" Content-Description: OpenPGP digital signature Content-Disposition: attachment; filename="signature.asc" -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.10 (MingW32) Comment: Using GnuPG with Thunderbird - http://www.enigmail.net/ iQIcBAEBAgAGBQJRtP+tAAoJEG54KsA8mwz5FBcP/3TIcAlYCSQ5O0z9AsI6yQYP xLdLrzYFd0MJkOTPxrMc5MB+8CLn26n2qaBwvWebPfRvIJDhTDzJ6v5Hcrm9QDcD fjZK+YqoIFS/6DoO1mQg6T7BdqXRilX2+BIlPd2/SZhSht17Idc/lFMSnQmAwILZ 3xHc/vbznsvOO/0bagLLWxybqSso9/Bt+rU2hoO3TU0MnX9I4ExmR3dXLPcr9lWQ IQSLiTjwBfZEofJX7dsDeaMWA/Hxt1+pn2WSgqqrbSwfetFxoKf0rgG6E1ByL23z pkiYrLWmKeySROyJr4ErlKDpn3Kv61lpKBb7BUsf8m5lspf0QPzSgdE4/YVBhPaC UrcggZvLNUVMJQWQNRLSR81Iy8kunbWJW14Qe+OjDD3Iz3ik7xcIcS53p89yVhdH lfZcUA3sOkBdyVNe78HB07NJe15RKZERpLPZQkz8ZPjmgEk2B2J2ekjwWxnpm5VO bcRqnu7HNCIfZjW7Hmkpd7+RJwAURpo3X8GVa1knxkB4ALYXMZrmpWnOwJRGmtIX 5WsxcBmswb6w8zU4Go7Rqo5YXsXE6c6AyJXKWQOwiPs0CgS3TylIEnaQclQ4j55g W1BSqptGDJSU1zAj3JxxuQzLwXjMKy0XNbmzHWxhpETSmZkD7xNRTPaq8qe65INP IDXkrPnRtGYfMTO+xQkp =rDky -----END PGP SIGNATURE----- ------enig2IFANJHEQXURDUVNHJQGM--