Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 18 Apr 2012 18:32:42 +0100
From:      Chris Rees <utisoft@gmail.com>
To:        =?ISO-8859-1?Q?Fernando_Apestegu=EDa?= <fernando.apesteguia@gmail.com>
Cc:        freebsd-ports@freebsd.org
Subject:   Re: Question about PORTEXAMPLES
Message-ID:  <CADLo83_8ew5kH%2BRhv4LDQjburNzwSKbQc2mhWhPn2UXnic_gmw@mail.gmail.com>
In-Reply-To: <CAGwOe2YW_LB9Yfyr4Q=s0QAvcvUtgjopP-aBQqufY7imoxUqyw@mail.gmail.com>
References:  <CAGwOe2YW_LB9Yfyr4Q=s0QAvcvUtgjopP-aBQqufY7imoxUqyw@mail.gmail.com>

next in thread | previous in thread | raw e-mail | index | archive | help
On 18 Apr 2012 18:05, "Fernando Apestegu=EDa" <fernando.apesteguia@gmail.co=
m>
wrote:
>
> Hi all,
>
> I'm working on the port for OpenVSP. Here[1] there is a preliminary
version.
>
> scheidell suggests simplifying the port using PORTEXAMPLES. I redid the
Makefile
> a little so it looks like this now (I show only the relevant part):
>
> PORTEXAMPLES=3D   ${WRKSRC}/../examples/airfoil/*
> PORTEXAMPLES+=3D  ${WRKSRC}/../examples/cabin/*
> PORTEXAMPLES+=3D  ${WRKSRC}/../examples/fonts/*
> PORTEXAMPLES+=3D  ${WRKSRC}/../examples/fuselage/*
> PORTEXAMPLES+=3D  ${WRKSRC}/../examples/models/*
> PORTEXAMPLES+=3D  ${WRKSRC}/../examples/setup/*
> PORTEXAMPLES+=3D  ${WRKSRC}/../examples/textures/*
>
> PLIST_FILES=3D    bin/vsp
>
> do-fetch:
>        ${FETCH_BINARY} -o ${DISTDIR}/${DISTNAME}.tar.gz
> ${MASTER_SITES}${DISTNAME}
>
> do-install:
>        @${INSTALL_PROGRAM} ${WRKSRC}/vsp/vsp ${PREFIX}/bin
> .if !defined(NOPORTEXAMPLES)
> .for i in airfoil cabin fonts fuselage models setup textures
>        @${MKDIR} ${EXAMPLESDIR}/${i}
>        @${INSTALL_DATA} ${WRKSRC}/../examples/${i}/* ${EXAMPLESDIR}
> .endfor
> .endif
>
> portlint -abt only complains about one single MASTER_SITE configured
> (nothing I can do
> about it).
>
> However, 'port test' shows the following:
>
> =3D=3D=3D>   Deinstalling openvsp-2.0
> pkg_delete: unable to completely remove directory
> '/tmp/openvsp-2.0/share/examples/openvsp'
> pkg_delete: couldn't entirely delete package `openvsp-2.0'
> (perhaps the packing list is incorrectly specified?)
>
> I don't get why this happens. What I want is to keep the same
> hierarchy the package has. This is,
> having the subdirectories 'airfoil', 'cabin', etc. hanging from the
> port's EXAMPLESDIR.
>
> Any help is appreciated.
>
> Cheers.
>
> PS: Please, CC me as I'm not subscribed to the list. Thanks!
>
> [1] http://www.freebsd.org/cgi/query-pr.cgi?pr=3D166825
>

PORTEXAMPLES=3D* will work fine for the plist; don't use PORTEXAMPLES in th=
e
for loop.

Your problem is that you aren't removing the subdirs below EXAMPLESDIR.

Chris



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?CADLo83_8ew5kH%2BRhv4LDQjburNzwSKbQc2mhWhPn2UXnic_gmw>