cvs commit: ports/net/liferea Makefile distinfo pkg-plist

Adam Weinberger adamw at FreeBSD.org
Sun Mar 20 09:31:54 PST 2005


Hye-Shik Chang wrote:
> perky       2005-03-20 17:04:14 UTC
> 
>   FreeBSD ports repository
> 
>   Modified files:
>     net/liferea          Makefile distinfo pkg-plist 
>   Log:
>   Update to 0.9.1.

Can this port please please be updated to respect WITH_MOZILLA? This 
port should work just fine if someone is using a firefox backend, but as 
it stands now, it forces people to have mozilla installed.

Furthermore, you should not be using WITH_MOZILLA as a check variable 
without honouring its contents. Anybody who has mozilla-devel installed, 
or chooses to have firefox as their only mozilla-based backend, will 
have WITH_MOZILLA set in their environment. That means that there's no 
way to disable mozilla support for these people in liferea.

Please look at galeon or epiphany or mplayer-plugin etc. to see what 
other ports do with the WITH_MOZILLA variable.

I think you should do the following:

.if WITH_MOZILLA=="firefox" || WITH_MOZILLA="mozilla" || \
	WITH_MOZILLA="mozilla-devel"
BUILD_DEPENDS=	${WITH_MOZILLA}:${PORTSDIR}/www/${WITH_MOZILLA}
.else
.if defined(WITH_MOZILLA)
BUILD_DEPENDS=	mozilla:${PORTSDIR}/www/mozilla
.fi
.fi
RUN_DEPENDS=	${BUILD_DEPENDS}


This way, if a user has WITH_MOZILLA set to the browser of their choice, 
that browser will be registered as a dependency (and liferea will stop 
corrupting everyone's package database every single time it's installed 
or upgraded). Users can still set WITH_MOZILLA to "yes" or whatever to 
force a dependency on mozilla, similar to what the port expects right now.

# Adam



-- 
Adam Weinberger
adamw at magnesium.net || adamw at FreeBSD.org
adamw at vectors.cx    ||   adamw at gnome.org
http://www.vectors.cx


More information about the cvs-ports mailing list