Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
ebuild funtoo/gentoo pour calaos_base et calaos_installer
#1
Information 
Ola,
Voici deux ebuilds basiques pour installer calaos_base (calaos_server et calaos_home) ainsi que calaos_installer à partir des repos git sur une funtoo current (gentoo aussi devrait être OK).

calaos_base-9999.ebuild:
Code:
EAPI=3
inherit eutils git-2

DESCRIPTION="Calaos Base"
HOMEPAGE="https://calaos.fr"
EGIT_REPO_URI="git://github.com/calaos/calaos_base.git"
EGIT_PROJECT="calaos_base"
SRC_URI="https://github.com/calaos/calaos_base"

LICENSE="GPL-3"
SLOT="0"
KEYWORDS="~amd64 ~x86"
IUSE="home server"

DEPEND=">=dev-libs/eina-1.7.0
    >=dev-libs/eet-1.7.0
    >=dev-libs/ecore-1.7.0
    >=dev-libs/libsigc++-2.0
    >=dev-libs/log4cpp-1.0
    >=dev-libs/jansson-2.0.0
    >=dev-cpp/libvmime-0.9.0
    >=dev-lang/lua-5.1
    server? ( net-misc/curl )
    home? (
        net-misc/curl
        >=dev-libs/eina-1.7.0
        >=media-libs/elementary-1.7.0
        >=dev-libs/openssl-1.0.0
    )
"
RDEPEND="${DEPEND}"

S="${WORKDIR}/${PN}"

src_prepare() {
    sed -e "s/lua5.1/lua/g" -i configure.ac
    ./autogen.sh || die "autogen.sh failed"
}

src_compile() {
    emake || die "emake failed"
}

src_install() {
    if use server; then
        dobin  "${S}/src/bin/calaos_server/calaos_server" || die
    fi
    if use home; then
        dobin  "${S}/src/bin/calaos_home/calaos_home" || die
        dodir /usr/share/calaos
        insinto /usr/share/calaos
        doins "${S}/data/themes/default/default.edj"
    fi
}

calaos_installer-9999.ebuild:
Code:
EAPI=5
inherit qt4-r2
inherit eutils git-2

DESCRIPTION="Calaos Installer"
HOMEPAGE="https://calaos.fr"
EGIT_REPO_URI="git://github.com/calaos/calaos_installer.git"
EGIT_PROJECT="calaos_installer"
SRC_URI="https://github.com/calaos/calaos_installer"

LICENSE="GPL-3"
SLOT="0"
KEYWORDS="~amd64 ~x86"
IUSE=""

DEPEND=">=dev-lang/lua-5.1
    dev-qt/qtgui:4
    dev-qt/qtcore:4"
RDEPEND="${DEPEND}"

S="${WORKDIR}/${PN}"

src_prepare() {
    sed -e "s/lua5.1/lua/g" -i "${S}"/${PN}.pro
}

src_configure() {
    eqmake4 "${S}"/${PN}.pro
}

src_install() {
    dobin "${S}/${PN}" || die
}
Calaos v2 mele A2000G | Wago 750-881
Reply


Messages In This Thread
ebuild funtoo/gentoo pour calaos_base et calaos_installer - by gwarf - 09-26-2013, 06:04 PM

Forum Jump:


Users browsing this thread: 1 Guest(s)