[MacPorts] #26325: asused
MacPorts
noreply at macports.org
Sat Sep 11 12:35:12 PDT 2010
#26325: asused
-----------------------------+----------------------------------------------
Reporter: fclaire@… | Owner: macports-tickets@…
Type: submission | Status: new
Priority: Normal | Milestone:
Component: ports | Version: 1.9.1
Keywords: | Port: asused
-----------------------------+----------------------------------------------
Changes (by raimue@…):
* cc: raimue@… (added)
Comment:
For a better version number:
{{{
version 3.72
...
distname ${name}-${version}_whois_new_query_fix
}}}
Using `perl` is too general, especially without additional dependencies.
With a fallback to `/usr/bin/perl` this would end up in system
directories.
{{{
PortGroup perl5 1.0
...
depends_lib path:[string range ${perl5.bin} [string length
${prefix}/] end]:perl5
configure.cmd ${perl5.bin}
configure.env PERL_AUTOINSTALL=--skipdeps
configure.pre_args Makefile.PL
configure.args INSTALLDIRS=vendor
}}}
To make this more portable even when the version of perl changes (or
perl5.10 are perl5.12 used):
{{{
post-destroot {
delete [glob ${destroot}${prefix}/lib/perl5/*/*/perllocal.pod]
}
}}}
According to [http://www.freebsd.org/cgi/cvsweb.cgi/ports/net-
mgmt/asused/Makefile FreeBSD], this also needs patching for the config
file:
{{{
post-patch {
reinplace "s|asused\\.conf|${prefix}/etc/asused\\.conf|g"
${worksrcpath}/asused.PL
}
}}}
In general, the config file should be handled as described in
[wiki:PortfileRecipes#configfiles PortfileRecipes].
[http://patch-tracker.debian.org/package/asused/3.72-9 Debian] has a few
more patches, maybe one of them is worth porting?
All the comments above are untested, but I hope that will be enough :-)
--
Ticket URL: <http://trac.macports.org/ticket/26325#comment:3>
MacPorts <http://www.macports.org/>
Ports system for Mac OS
More information about the macports-tickets
mailing list