From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from pigeon.gentoo.org ([208.92.234.80] helo=lists.gentoo.org) by finch.gentoo.org with esmtp (Exim 4.60) (envelope-from ) id 1Qv7WU-0002gl-HT for garchives@archives.gentoo.org; Sun, 21 Aug 2011 12:53:06 +0000 Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id EF39D21C363; Sun, 21 Aug 2011 12:52:58 +0000 (UTC) Received: from smtp.gentoo.org (smtp.gentoo.org [140.211.166.183]) by pigeon.gentoo.org (Postfix) with ESMTP id 9F65421C363 for ; Sun, 21 Aug 2011 12:52:58 +0000 (UTC) Received: from pelican.gentoo.org (unknown [66.219.59.40]) (using TLSv1 with cipher ADH-AES256-SHA (256/256 bits)) (No client certificate requested) by smtp.gentoo.org (Postfix) with ESMTPS id DD5C11B4012 for ; Sun, 21 Aug 2011 12:52:57 +0000 (UTC) Received: from localhost.localdomain (localhost [127.0.0.1]) by pelican.gentoo.org (Postfix) with ESMTP id 2EAE180040 for ; Sun, 21 Aug 2011 12:52:57 +0000 (UTC) From: "Александр Берсенев" To: gentoo-commits@lists.gentoo.org Content-type: text/plain; charset=UTF-8 Reply-To: gentoo-dev@lists.gentoo.org, "Александр Берсенев" Message-ID: Subject: [gentoo-commits] proj/autodep:master commit in: /, ebuild/, src/autodep/tests/ X-VCS-Repository: proj/autodep X-VCS-Files: Makefile ebuild/autodep-0.1.ebuild emerge_strict src/autodep/tests/all_tests.py X-VCS-Directories: / ebuild/ src/autodep/tests/ X-VCS-Committer: bay X-VCS-Committer-Name: Александр Берсенев X-VCS-Revision: a40aeaee9aa2736c837353becab9bb10788b43ab Date: Sun, 21 Aug 2011 12:52:57 +0000 (UTC) Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: List-Id: Gentoo Linux mail X-BeenThere: gentoo-commits@lists.gentoo.org Content-Transfer-Encoding: quoted-printable X-Archives-Salt: X-Archives-Hash: db9acb6f00dbf31589fec082e5f24e7b commit: a40aeaee9aa2736c837353becab9bb10788b43ab Author: Alexander Bersenev hackerdom ru> AuthorDate: Sun Aug 21 18:51:39 2011 +0000 Commit: =D0=90=D0=BB=D0=B5=D0=BA=D1=81=D0=B0=D0=BD=D0=B4=D1=80 =D0=91= =D0=B5=D1=80=D1=81=D0=B5=D0=BD=D0=B5=D0=B2 hackerdom ru> CommitDate: Sun Aug 21 18:51:39 2011 +0000 URL: http://git.overlays.gentoo.org/gitweb/?p=3Dproj/autodep.git;a= =3Dcommit;h=3Da40aeaee prepare to emerging --- Makefile | 8 ++++++++ ebuild/autodep-0.1.ebuild | 27 +++++++++++++++++++++++++++ emerge_strict | 13 +++++++++++++ src/autodep/tests/all_tests.py | 2 +- 4 files changed, 49 insertions(+), 1 deletions(-) diff --git a/Makefile b/Makefile index 96e3763..88d9363 100644 --- a/Makefile +++ b/Makefile @@ -10,6 +10,14 @@ file_hook.so: file_hook.o file_hook.o: src/hook_lib/file_hook.c cc -Wall -fPIC -o file_hook.o -c src/hook_lib/file_hook.c =20 +install: + mkdir -p "${DESTDIR}/usr/lib/" + cp file_hook.so "${DESTDIR}/usr/lib/" + cp -R src/autodep "${DESTDIR}/usr/lib/" + cp -R portage_with_autodep "${DESTDIR}/usr/lib/" + + mkdir -p "${DESTDIR}/usr/bin/" + cp hookfs emerge_strict "${DESTDIR}/usr/bin/" =20 clean: rm -f hookfs file_hook.o file_hook.so diff --git a/ebuild/autodep-0.1.ebuild b/ebuild/autodep-0.1.ebuild new file mode 100644 index 0000000..37ccfa7 --- /dev/null +++ b/ebuild/autodep-0.1.ebuild @@ -0,0 +1,27 @@ +# Copyright 1999-2010 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Header: $ + +EAPI=3D3 + +PYTHON_DEPEND=3D'2:2.6' +RESTRICT_PYTHON_ABIS=3D'2.4 2.5 3.*' + +inherit distutils eutils + +DESCRIPTION=3D"Auto dependency analyser for Gentoo" +HOMEPAGE=3D"http://alexbers.dyndns.org/autodep/" +SRC_URI=3D"http://alexbers.dyndns.org/autodep/${P}.tar.gz" + +LICENSE=3D"GPL-2" +SLOT=3D"0" +KEYWORDS=3D"~x86 ~amd64" +IUSE=3D"" + +src_compile() { + emake || die +} + +src_install() { + emake DESTDIR=3D"${D}" install || die +} diff --git a/emerge_strict b/emerge_strict new file mode 100755 index 0000000..ea242b0 --- /dev/null +++ b/emerge_strict @@ -0,0 +1,13 @@ +#!/bin/bash + +# get name of myself +WRAPPER_NAME=3D"`readlink -f "$0"`" +PROG_DIR=3D"`dirname "$WRAPPER_NAME"`" +LIB_DIR=3D"`readlink -f "$PROG_DIR"/../lib`" + +export PYTHONPATH=3D"$LIB_DIR/portage_with_autodep/pym:${PYTHONPATH}" +export PATH=3D"$LIB_DIR/portage_with_autodep/bin:${PATH}" + +export FEATURES=3D"depcheckstrict ${FEATURES}" + +exec emerge "$@" diff --git a/src/autodep/tests/all_tests.py b/src/autodep/tests/all_tests= .py index 0d52de7..3542ca8 100644 --- a/src/autodep/tests/all_tests.py +++ b/src/autodep/tests/all_tests.py @@ -2,7 +2,7 @@ import glob import unittest =20 # change it if you don't want get all tests runned -testsglob=3D'tests/test_p*.py' +testsglob=3D'tests/test_*.py' =20 def create_test_suite(): test_file_strings =3D glob.glob(testsglob)