ebuild для itmages
RazrFalcon 9 мая, 2012 - 00:27
Захотел написать ebuild (опыта 0) для itmages загрузчика.
Нужно собрать демон на питоне (отталкиваюсь от арчевских пакетов):
пример PKGBUILD https://aur.archlinux.org/packages/it/itmages-service/PKGBUILD
ну и потом уже гуи на qt
https://aur.archlinux.org/packages/it/itmages-service/PKGBUILD
Пока написал ebuild только для демона. Зависимости ставятся, но сам пакет не собирается:
# Copyright 1999-2012 Gentoo Foundation
# Distributed under the terms of the GNU Lesser General Public License v3
# $Header: $
EAPI="4"
inherit python
DESCRIPTION="Scripts for uploading pictures to ITmages.ru"
HOMEPAGE="http://www.gnu.org/software/sed/sed.html"
EGIT_REPO_URI="git://github.com/itmages/itmages-service.git"
LICENSE="GPL-3"
SLOT="0"
KEYWORDS="~amd64 ~x86"
RDEPEND="dev-lang/python
dev-python/pycurl
dev-python/dbus-python
dev-python/lxml
dev-python/pygobject"
PYTHON_DEPEND="2"
src_configure() {
econf \
--bindir="${EPREFIX}"/bin
}
src_compile() {
default
if use python; then
python_execute_function ./setup.py install --prefix=/usr
fi
}
src_install() {
emake DESTDIR="${D}" install
}
$ sudo emerge -pv net-misc/itmages-service
These are the packages that would be merged, in order:
Calculating dependencies... done!
[ebuild N ] dev-python/pycurl-7.19.0 USE="-examples" 70 kB
[ebuild N ] dev-python/dbus-python-1.0.0 USE="-doc -examples -test" 570 kB
[ebuild N ] net-misc/itmages-service-0.38::x-portage USE="-applet" 0 kB
Total: 3 packages (3 new), Size of downloads: 640 kB
[razr@razr itmages-service]$ sudo emerge net-misc/itmages-service
Calculating dependencies... done!
>>> Verifying ebuild manifests
>>> Starting parallel fetch
>>> Emerging (1 of 3) dev-python/pycurl-7.19.0
>>> Installing (1 of 3) dev-python/pycurl-7.19.0
>>> Emerging (2 of 3) dev-python/dbus-python-1.0.0
>>> Installing (2 of 3) dev-python/dbus-python-1.0.0
>>> Emerging (3 of 3) net-misc/itmages-service-0.38 from x-portage
>>> Failed to emerge net-misc/itmages-service-0.38, Log file:
>>> '/var/tmp/portage/net-misc/itmages-service-0.38/temp/build.log'
>>> Jobs: 2 of 3 complete, 1 failed Load avg: 1.20, 0.80, 0.68
* Package: net-misc/itmages-service-0.38
* Repository: x-portage
* USE: amd64 consolekit elibc_glibc kernel_linux multilib policykit userland_GNU
* FEATURES: ccache sandbox splitdebug
>>> Unpacking source...
>>> Source unpacked in /var/tmp/portage/net-misc/itmages-service-0.38/work
>>> Preparing source in /var/tmp/portage/net-misc/itmages-service-0.38/work ...
>>> Source prepared.
* ERROR: net-misc/itmages-service-0.38 failed (configure phase):
* The source directory '/var/tmp/portage/net-misc/itmages-service-0.38/work/itmages-service-0.38' doesn't exist
*
* Call stack:
* ebuild.sh, line 701: Called ebuild_main 'configure'
* phase-functions.sh, line 955: Called dyn_configure
* phase-functions.sh, line 403: Called die
* The specific snippet of code:
* die "The source directory '${S}' doesn't exist"
*
* If you need support, post the output of 'emerge --info =net-misc/itmages-service-0.38',
* the complete build log and the output of 'emerge -pqv =net-misc/itmages-service-0.38'.
* This ebuild is from an overlay named 'x-portage': '/usr/local/portage/'
* The complete build log is located at '/var/tmp/portage/net-misc/itmages-service-0.38/temp/build.log'.
* The ebuild environment file is located at '/var/tmp/portage/net-misc/itmages-service-0.38/temp/environment'.
* Working directory: '/var/tmp/portage/net-misc/itmages-service-0.38'
* S: '/var/tmp/portage/net-misc/itmages-service-0.38/work/itmages-service-0.38'
* Messages for package net-misc/itmages-service-0.38:
* ERROR: net-misc/itmages-service-0.38 failed (configure phase):
* The source directory '/var/tmp/portage/net-misc/itmages-service-0.38/work/itmages-service-0.38' doesn't exist
*
* Call stack:
* ebuild.sh, line 701: Called ebuild_main 'configure'
* phase-functions.sh, line 955: Called dyn_configure
* phase-functions.sh, line 403: Called die
* The specific snippet of code:
* die "The source directory '${S}' doesn't exist"
*
* If you need support, post the output of 'emerge --info =net-misc/itmages-service-0.38',
* the complete build log and the output of 'emerge -pqv =net-misc/itmages-service-0.38'.
* This ebuild is from an overlay named 'x-portage': '/usr/local/portage/'
* The complete build log is located at '/var/tmp/portage/net-misc/itmages-service-0.38/temp/build.log'.
* The ebuild environment file is located at '/var/tmp/portage/net-misc/itmages-service-0.38/temp/environment'.
* Working directory: '/var/tmp/portage/net-misc/itmages-service-0.38'
* S: '/var/tmp/portage/net-misc/itmages-service-0.38/work/itmages-service-0.38'
* GNU info directory index is up-to-date.
PS: в отличии от PKGBUILD использую git репозиторий.
Проблема в том, что я не пойму как выполнить:
python2 ./setup.py install --root="${pkgdir}"
в ebuild.
Спасибо.
»
- Для комментирования войдите или зарегистрируйтесь

Дописал твой ebuild, убрал
Дописал твой ebuild, убрал много ненужного, добавил много нужного. app-misc/itmages-service, лежит в моем оверлеем(чтоб его добавить - layman -a pinkbyte). Кстати, я так и не понял, какая лицензия у этого набора скриптов. GPL-2 или GPL-3? Я пока поставил GPL-2, т.к. именно она упомянута в репозитарии на github.com
Нейтральность - высшее достижение сознания!
https://github.com/Pinkbyte/p
https://github.com/Pinkbyte/pinkbyte-overlay/blob/master/app-misc/itmages-service/itmages-service-9999.ebuild
Это?
А установка тогда где? Тут же тока ссылка и зависимости.
Тут же тока ссылка и
Это тебе так кажется. Магия состоит в строчке
:)
Compute:
Bosch M2.8.1 -> custom Bosch M2.8.3 clone from Russia.
Speed about 260 km,Ram 2 pers.,HDD - 70 kg,210 FLOPS ;)
И в правду магия!
И в правду магия!
HOMEPAGE="http://www.gnu.org/
HOMEPAGE="http://www.gnu.org/software/sed/sed.html" ?
Текстовый редактор vi имеет два режима работы: в первом он пищит, а во втором — всё портит.
=) оф. пример переписывал,
=)
оф. пример переписывал, вот и осталось
проглядел, моя вина. поправил
проглядел, моя вина. поправил
Нейтральность - высшее достижение сознания!