+++ /dev/null
-# Copyright 1999-2014 Gentoo Foundation
-# Distributed under the terms of the GNU General Public License v2
-
-EAPI=5
-PYTHON_COMPAT=( python{2_7,3_4} )
-
-inherit distutils-r1
-
-DESCRIPTION="A tool for identifying files embedded inside firmware images"
-HOMEPAGE="https://github.com/devttys0/binwalk"
-SRC_URI="https://github.com/devttys0/${PN}/archive/v${PV}.tar.gz -> ${P}.tar.gz"
-
-LICENSE="MIT"
-SLOT="0"
-KEYWORDS="~amd64 ~x86"
-IUSE="graph"
-
-RDEPEND="
- app-crypt/ssdeep
- sys-apps/file[${PYTHON_USEDEP}]
- graph? ( dev-python/pyqtgraph[opengl,${PYTHON_USEDEP}] )
-"
-
-PATCHES=(
- "${FILESDIR}"/${P}-makefile.patch
- "${FILESDIR}"/${P}-libs.patch
-)
-
-python_configure_all() {
- econf --disable-bundles
-}
-
-python_compile_all() {
- emake
-}
-
-python_install_all() {
- local DOCS=( API.md INSTALL.md )
- distutils-r1_python_install_all
-
- dolib.so src/C/*/*.so
-}
+++ /dev/null
-Don't install C libs by default since we don't need to install them for
-every python version since they aren't linked with libpython.
-
---- binwalk-2.0.1/setup.py
-+++ binwalk-2.0.1/setup.py
-@@ -134,7 +134,7 @@
-
- # The data files to install along with the module
- data_dirs = ["magic", "config", "plugins", "modules", "core"]
--install_data_files = [os.path.join("libs", "*.so")]
-+install_data_files = []
-
- for data_dir in data_dirs:
- install_data_files.append("%s%s*" % (data_dir, os.path.sep))
+++ /dev/null
-Don't build python via the makefile and fix parallel make jobs.
-
---- binwalk-2.0.1/Makefile.in
-+++ binwalk-2.0.1/Makefile.in
-@@ -33,21 +33,20 @@
- $(PYTHON) ./setup.py install $(PREFIX)
-
- build:
-- if [ "$(BUILD_C_LIBS)" -eq "1" ]; then make -C $(SRC_C_DIR); fi
-- if [ "$(BUILD_BUNDLES)" -eq "1" ]; then make -C $(SRC_BUNDLES_DIR); fi
-- $(PYTHON) ./setup.py build
-+ if [ "$(BUILD_C_LIBS)" -eq "1" ]; then $(MAKE) -C $(SRC_C_DIR); fi
-+ if [ "$(BUILD_BUNDLES)" -eq "1" ]; then $(MAKE) -C $(SRC_BUNDLES_DIR); fi
-
- deps:
- ./deps.sh
-
- clean:
-- if [ "$(BUILD_C_LIBS)" -eq "1" ]; then make -C $(SRC_C_DIR) clean; fi
-- if [ "$(BUILD_BUNDLES)" -eq "1" ]; then make -C $(SRC_BUNDLES_DIR) clean; fi
-+ if [ "$(BUILD_C_LIBS)" -eq "1" ]; then $(MAKE) -C $(SRC_C_DIR) clean; fi
-+ if [ "$(BUILD_BUNDLES)" -eq "1" ]; then $(MAKE) -C $(SRC_BUNDLES_DIR) clean; fi
- $(PYTHON) ./setup.py clean
-
- distclean: clean
-- if [ "$(BUILD_C_LIBS)" -eq "1" ]; then make -C $(SRC_C_DIR) distclean; fi
-- if [ "$(BUILD_BUNDLES)" -eq "1" ]; then make -C $(SRC_BUNDLES_DIR) distclean; fi
-+ if [ "$(BUILD_C_LIBS)" -eq "1" ]; then $(MAKE) -C $(SRC_C_DIR) distclean; fi
-+ if [ "$(BUILD_BUNDLES)" -eq "1" ]; then $(MAKE) -C $(SRC_BUNDLES_DIR) distclean; fi
- rm -rf Makefile config.* *.cache
-
- uninstall:
---- binwalk-2.0.1/src/C/Makefile
-+++ binwalk-2.0.1/src/C/Makefile
-@@ -3,9 +3,9 @@
- .PHONY: all clean_libs clean distclean
-
- all:
-- make -C miniz
-+ $(MAKE) -C miniz
- cp miniz/*.$(SOEXT) $(LIB_DIR)
-- make -C compress
-+ $(MAKE) -C compress
- cp compress/*.$(SOEXT) $(LIB_DIR)
-
- clean_libs:
-@@ -13,10 +13,10 @@
- rm -f $(LIB_DIR)/libcompress42.$(SOEXT)
-
- clean: clean_libs
-- make -C miniz clean
-- make -C compress clean
-+ $(MAKE) -C miniz clean
-+ $(MAKE) -C compress clean
-
- distclean: clean_libs
-- make -C miniz distclean
-- make -C compress distclean
-+ $(MAKE) -C miniz distclean
-+ $(MAKE) -C compress distclean
-