diff --git a/devel/py-lief/Makefile b/devel/py-lief/Makefile new file mode 100644 index 000000000000..dac486e99c1f --- /dev/null +++ b/devel/py-lief/Makefile @@ -0,0 +1,27 @@ +PORTNAME= lief +DISTVERSION= 0.11.5 +CATEGORIES= devel +PKGNAMEPREFIX= ${PYTHON_PKGNAMEPREFIX} + +MAINTAINER= ports@nicandneal.net +COMMENT= Parse, modify and abstract ELF, PE and MachO formats + +LICENSE= APACHE20 + +# Note: cmake is needed to build, but distutils is used directly. +# If USES= cmake is set, the build wqill not work. +BUILD_DEPENDS= cmake:devel/cmake + +USES= python +USE_PYTHON= distutils + +USE_GITHUB= yes +GH_ACCOUNT= lief-project +GH_PROJECT= LIEF + +PLIST_SUB= PY_VER=${PYTHON_VER:S/.//} + +do-build: + # Nothing to build. + +.include diff --git a/devel/py-lief/distinfo b/devel/py-lief/distinfo new file mode 100644 index 000000000000..06d0fbb1149e --- /dev/null +++ b/devel/py-lief/distinfo @@ -0,0 +1,3 @@ +TIMESTAMP = 1622126300 +SHA256 (lief-project-LIEF-0.11.5_GH0.tar.gz) = 6d6d57304a56850958e4ce54f3da2ea2b9eb856ccbab61c6cde9cba15d7c9da5 +SIZE (lief-project-LIEF-0.11.5_GH0.tar.gz) = 15519537 diff --git a/devel/py-lief/pkg-descr b/devel/py-lief/pkg-descr new file mode 100644 index 000000000000..c03068dba958 --- /dev/null +++ b/devel/py-lief/pkg-descr @@ -0,0 +1,13 @@ +The purpose of this project is to provide a cross platform library which can +parse, modify and abstract ELF, PE and MachO formats. + +Main features: + +- Parsing: LIEF can parse ELF, PE, MachO, OAT, DEX, VDEX, ART and provides a + user-friendly API to access to format internals. +- Modify: LIEF enables to modify some parts of these formats +- Abstract: Three formats have common features like sections, symbols, entry + point... LIEF factors them. +- API: LIEF can be used in C, C++ and Python + +WWW: https://github.com/lief-project/lief diff --git a/devel/py-lief/pkg-plist b/devel/py-lief/pkg-plist new file mode 100644 index 000000000000..ed8f1e24a237 --- /dev/null +++ b/devel/py-lief/pkg-plist @@ -0,0 +1,4 @@ +bin/elf_reader.py +bin/macho_reader.py +bin/pe_reader.py +%%PYTHON_SITELIBDIR%%/lief.cpython-%%PY_VER%%.so