Date: Sun, 17 Dec 2017 14:48:45 +1030 From: Shane Ambler <FreeBSD@ShaneWare.Biz> To: Yuri <yuri@rawbw.com>, Franco Fichtner <franco@lastsummer.de> Cc: Ben Woods <woodsb02@gmail.com>, freebsd-ports@freebsd.org Subject: Re: Option vs. flavor? Message-ID: <865c6db8-25e4-3129-4ea1-f9d4763b85a3@ShaneWare.Biz> In-Reply-To: <76d50979-5534-261e-83fa-9471a3850a54@rawbw.com> References: <ee10fa7f-9107-1c35-8540-ff34d306865d@rawbw.com> <20171216142849.GL10752@graf.pompo.net> <CAOc73CAe03AuLsgSvw1TfV7Ke9qLvGJtHpqowvF=KPnMOxOjxg@mail.gmail.com> <00619a7a-a812-1eac-bdb7-5cecfb891758@rawbw.com> <CAOc73CAqp9=-8T8czbhk3CP6B2iftkqdXau10JNzmPUXHF0UXg@mail.gmail.com> <11f773c6-7f69-0a4a-d100-018d40a65f48@rawbw.com> <F2167B1B-9F8D-403D-8BDF-11E3507214F2@lastsummer.de> <76d50979-5534-261e-83fa-9471a3850a54@rawbw.com>
next in thread | previous in thread | raw e-mail | index | archive | help
On 17/12/2017 08:32, Yuri wrote: > On 12/16/17 13:39, Franco Fichtner wrote: >> Why not use a separate data package as optional dependency? Solves the >> conditional fetch. > > > But with the port option fetch is also conditional. There is no need to > create an extra-package. Flavours aren't for option variations, they are for the same code being linked against multiple versions of other ports, each with different dependencies - eg python 2.7/3.6 or ruby 2.2/ruby2.4 You could either make a separate port for the data files or add it as an option to the main port. Using an option for the data files, you either make it a default option so that the data is installed by anyone that installs the pkg or have it off so that anyone who wants the data files needs to build the port themselves. Having 4.5GB of optional data, I wouldn't suggest having it as an option that is on, this way the package repos don't need to add 4.5GB of data for each arch that pkgs are built for. Add a second port for data files - see games/alephone and alephone-data for an example. To prevent the pkg being added to pkg repos, add NO_PACKAGE= Data files too big, user to download manually Using a second data port means the user can download and install the data without having to compile the program. Add info about this to pkg-message for the user to read, even if it is about building the data port to get the extra data. As for adding it as an option - OPTIONS_DEFINE= EXTRADATA EXTRADATA_DISTFILES= extra_data_files.tgz post-install-EXTRADATA-on: ${COPYTREE_SHARE} ${WRKDIR}/extra_data_files ${STAGEDIR}/${DATADIR} -- FreeBSD - the place to B...Software Developing Shane Ambler
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?865c6db8-25e4-3129-4ea1-f9d4763b85a3>