Skip to content
Permalink
Browse files

metabigor: new tool (replaces of abandoned net-analyzer/iposint)

  • Loading branch information...
linxon committed Oct 8, 2019
1 parent 6206802 commit 5e06455d90c0866e355f980e592811b49f186459
@@ -0,0 +1 @@
DIST metabigor-1.0_p20190918.tar.gz 24053 BLAKE2B f14aa5a4cccc9d7137ccf51ef05c6e29ae3a37d6f1455bf569e8856dd979463a58e8bd34c1f48cea062f4add6bc1273d2392cd6bd152c6f0beb1ea3d712b0cd8 SHA512 d477848e3175ad0132fe20757280d73eb9f1c0f48a894d81ebf827c1df10f8a0ba43bc6653cb1634c5ede6ed8068f75ac736d0276d3cfc22789370170c901797
@@ -0,0 +1,36 @@
diff -ur a/core/config.py b/core/config.py
--- a/core/config.py 2019-09-18 05:58:41.000000000 +0300
+++ b/core/config.py 2019-10-08 22:14:53.724925692 +0300
@@ -110,11 +110,6 @@
sys.exit(-1)


-def update():
- os.system('git fetch --all && git reset --hard origin/master')
- sys.exit(0)
-
-
def config(args):
options = {}
if args.query:
diff -ur a/metabigor.py b/metabigor.py
--- a/metabigor.py 2019-09-18 05:58:41.000000000 +0300
+++ b/metabigor.py 2019-10-08 22:11:28.381224400 +0300
@@ -76,8 +76,6 @@
dest='relatively', help='Get exact app and version')

parser.add_argument('--debug', action='store_true', dest='debug', help='Print debug output')
- parser.add_argument('--update', action='store_true',
- dest='update', help='Update lastest version from git')

args = parser.parse_args()

@@ -85,8 +83,6 @@
config.custom_help()
if args.modules_help:
config.modules_help()
- if args.update:
- config.update()

parsing_argument(args)

@@ -0,0 +1,57 @@
# Copyright 1999-2019 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2

EAPI=7

PYTHON_COMPAT=( python3_{5,6,7} )

inherit eutils python-single-r1

DESCRIPTION="Command line Search Engines Framework but without API key"
HOMEPAGE="https://github.com/j3ssie/Metabigor"

HASH_COMMIT="53648c9f464ea999bed0e5aea70ea94b4821f794"
SRC_URI="https://github.com/j3ssie/Metabigor/archive/${HASH_COMMIT}.tar.gz -> ${P}.tar.gz"

LICENSE="MIT"
SLOT=0
#KEYWORDS="~amd64"
IUSE=""
REQUIRED_USE="${PYTHON_REQUIRED_USE}"

DEPEND="${PYTHON_DEPS}"
RDEPEND="${DEPEND}
dev-python/requests[${PYTHON_USEDEP}]
dev-python/lxml[${PYTHON_USEDEP}]
dev-python/beautifulsoup:4[${PYTHON_USEDEP}]
dev-python/PyGithub[${PYTHON_USEDEP}]
dev-python/tldextract[${PYTHON_USEDEP}]
www-apps/chromedriver-bin"

S="${WORKDIR}/Metabigor-${HASH_COMMIT}"

pkg_setup() {
python-single-r1_pkg_setup
}

src_prepare() {
eapply "${FILESDIR}"/${P}_minor_changes.patch

sed -e "s/^__version__ = '\(.*\)'/__version__ = '${PV}'/" \
-i metabigor.py || die

python_fix_shebang -q "${S}"
default
}

src_install() {
insinto "/usr/share/${PN}"
doins -r core/ modules/ metabigor.py sample-config.conf

python_optimize "${D}/usr/share/${PN}"

make_wrapper $PN \
"python3 /usr/share/${PN}/metabigor.py"

dodoc README.md
}
@@ -0,0 +1,8 @@
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
<pkgmetadata>
<maintainer type="person">
<email>email@linxon.ru</email>
<name>Yury Martynov</name>
</maintainer>
</pkgmetadata>

0 comments on commit 5e06455

Please sign in to comment.
You can’t perform that action at this time.