Gentoo Logo
Gentoo Spaceship




Note: Due to technical difficulties, the Archives are currently not up to date. GMANE provides an alternative service for most mailing lists.
c.f. bug 424647
List Archive: gentoo-dev
Navigation:
Lists: gentoo-dev: < Prev By Thread Next > < Prev By Date Next >
Headers:
To: gentoo-dev@g.o
From: Michał Górny <mgorny@g.o>
Subject: Re: Re: RFC: leechcraft.eclass
Date: Fri, 22 Jul 2011 14:17:53 +0200
On Fri, 22 Jul 2011 14:57:08 +0400
Maxim Koltsov <maksbotan@g.o> wrote:

> Sorry, forgot the eclass. Attaching it here...
> P.S. Email of author: 0xd34df00d@...

Then you should CC him (like I did now).

> # Original author: 0xd34df00d <0xd34df00d@...> and
> #				   Andrian Nord <NightNord@...>
> 
> # Commiter: A.Vinogradov aka slepnoga <slep@...>

Use eclassdoc.

> case ${EAPI:-0} in
>         4|3|2) ;;
> 		0|1) die "EAPI not supported, bug ebuild mantainer" ;;
> 		*) die "Unknown EAPI, Bug eclass maintainers." ;;
> esac

Don't mix space and tab indent.

> if [[ "${PV}" == "9999" ]]; then

Needs not to be quoted.

> 	EGIT_PROJECT="leechcraft-${PV}"

What's the reasoning for this?

> 	KEYWORDS=""

Keywords must not be set by an eclass. Package managers will complain
about this.

> 	MY_P='leechcraft'

Usually, ${MY_P} stands for [alternate PN]-[PV]. MY_PN's what you're
referring to here.

> 	S="${WORKDIR}/${MY_P}-${PV}"

You seem not to be using ${MY_P} anywhere else. Just put
'leechcraft-${PV}' there then, don't pollute the environment.

> 	KEYWORDS="~amd64 ~x86"

As above, completely illegal.

> DEPEND="${DEPEND}
> 		!www-client/leechcraft"

What's this and why is that?

> SLOT="0"

SLOTs don't fit eclasses too, unless special use. Eclass is no excuse
to avoid declaring standard variables in ebuilds.

> # @FUNCTION:leechcraft_src_unpack
> # @DESCRIPTION:
> # Standart src_unpack live ebuild
> 
> leechcraft_src_unpack() {
> 	git-2_src_unpack
> 
> 	cd "${S}"
> }

What's the point of redeclaring this? Inheriting git-2 should do
the same, wouldn't it?

> # @FUNCTION: leechcraft_src_configure
> # @DESCRIPTION:
> # Use for configure leechcraft source.
> # Build_type is magic :)

That's not an useful description.

> # @FUNCTION: leechcraft_src_install
> # @DESCRIPTION:
> # Call cmake-utils_src_install :)
> 
> leechcraft_src_install() {
> 	cmake-utils_src_install
> }

Once again, inheriting cmake-utils should do that.

-- 
Best regards,
Michał Górny
Attachment:
signature.asc (PGP signature)
References:
RFC: leechcraft.eclass
-- Maxim Koltsov
Re: RFC: leechcraft.eclass
-- Maxim Koltsov
Navigation:
Lists: gentoo-dev: < Prev By Thread Next > < Prev By Date Next >
Previous by thread:
Re: RFC: leechcraft.eclass
Next by thread:
Re: Re: RFC: leechcraft.eclass
Previous by date:
Re: Packages up for grabs due dragonheart retirement
Next by date:
Re: RFC: leechcraft.eclass


Updated Jun 29, 2012

Summary: Archive of the gentoo-dev mailing list.

Donate to support our development efforts.

Copyright 2001-2013 Gentoo Foundation, Inc. Questions, Comments? Contact us.