2.2.0 в названии можно поменять на версию установленного Qt Creator. Тогда в ебилде строку
sed -i -e "s:2.1.81:2.2.0:g" todo.pluginspec || die "sed failed"
нужно заменить на
sed -i -e "s:<версия qtcreator, указанная в todo.pluginspec на gitorious>:<ваша версия qtcreator>:g" todo.pluginspec || die "sed failed"
# Copyright 2011 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: $
EAPI=2
inherit qt4-r2 multilib git
MPN="qt-creator"
MY_PN="${MPN/-/}"
MY_PV="${PV/_/-}"
MY_P="${MPN}-${MY_PV}"
DESCRIPTION="Qt Creator TODO plug-in."
HOMEPAGE="http://gitorious.org/qt-creator-todo-plugin"
EGIT_REPO_URI="git://gitorious.org/qt-creator-todo-plugin/qt-creator-todo-plugin.git"
SRC_URI="http://get.qt.nokia.com/${MY_PN}/${MY_P}-src.zip"
LICENSE="BSD"
SLOT="0"
KEYWORDS="~amd64 ~ppc ~ppc64 ~x86 "
IUSE=""
RDEPEND="=dev-util/qt-creator-${PV}"
DEPEND="${RDEPEND}"
S_QTCREATOR="${WORKDIR}/${MY_P}-src"
S="${WORKDIR}/${P}"
src_unpack() {
unpack "${A}"
git_src_unpack
cd "${S}"
sed -i -e "s:^QTC_SOURCE_DIR = .*$:QTC_SOURCE_DIR = ${S_QTCREATOR}:" \
-e "s:^QTC_BUILD_DIR = .*$:QTC_BUILD_DIR = ${S}/build:" \
-e "s:^IDE_BUILD_TREE = .*$:IDE_BUILD_TREE = ${S}/build\\`echo -e '\n\r'`QMAKE_LIBDIR += /usr/lib/qtcreator/ /usr/lib/qtcreator/plugins/Nokia:" todoplugin.pro || die "sed failed"
sed -i -e "s:2.1.81:2.2.0:g" todo.pluginspec || die "sed failed"
}
src_configure() {
eqmake4 todoplugin.pro
}
src_install() {
emake DESTDIR="${D}" INSTALL_ROOT="${D}usr" install || die "Install failed"
}
Комментариев нет:
Отправить комментарий