From: "Александр Берсенев" <bay@hackerdom.ru>
To: gentoo-commits@lists.gentoo.org
Subject: [gentoo-commits] proj/autodep:master commit in: /, ebuild/, src/autodep/tests/
Date: Sun, 21 Aug 2011 12:52:57 +0000 (UTC) [thread overview]
Message-ID: <a40aeaee9aa2736c837353becab9bb10788b43ab.bay@gentoo> (raw)
commit: a40aeaee9aa2736c837353becab9bb10788b43ab
Author: Alexander Bersenev <bay <AT> hackerdom <DOT> ru>
AuthorDate: Sun Aug 21 18:51:39 2011 +0000
Commit: Александр Берсенев <bay <AT> hackerdom <DOT> ru>
CommitDate: Sun Aug 21 18:51:39 2011 +0000
URL: http://git.overlays.gentoo.org/gitweb/?p=proj/autodep.git;a=commit;h=a40aeaee
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
+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/"
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=3
+
+PYTHON_DEPEND='2:2.6'
+RESTRICT_PYTHON_ABIS='2.4 2.5 3.*'
+
+inherit distutils eutils
+
+DESCRIPTION="Auto dependency analyser for Gentoo"
+HOMEPAGE="http://alexbers.dyndns.org/autodep/"
+SRC_URI="http://alexbers.dyndns.org/autodep/${P}.tar.gz"
+
+LICENSE="GPL-2"
+SLOT="0"
+KEYWORDS="~x86 ~amd64"
+IUSE=""
+
+src_compile() {
+ emake || die
+}
+
+src_install() {
+ emake DESTDIR="${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="`readlink -f "$0"`"
+PROG_DIR="`dirname "$WRAPPER_NAME"`"
+LIB_DIR="`readlink -f "$PROG_DIR"/../lib`"
+
+export PYTHONPATH="$LIB_DIR/portage_with_autodep/pym:${PYTHONPATH}"
+export PATH="$LIB_DIR/portage_with_autodep/bin:${PATH}"
+
+export FEATURES="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
# change it if you don't want get all tests runned
-testsglob='tests/test_p*.py'
+testsglob='tests/test_*.py'
def create_test_suite():
test_file_strings = glob.glob(testsglob)
reply other threads:[~2011-08-21 12:53 UTC|newest]
Thread overview: [no followups] expand[flat|nested] mbox.gz Atom feed
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=a40aeaee9aa2736c837353becab9bb10788b43ab.bay@gentoo \
--to=bay@hackerdom.ru \
--cc=gentoo-commits@lists.gentoo.org \
--cc=gentoo-dev@lists.gentoo.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox