Merge pull request #5440 from jefferyto/python-txsocksx-src
python-txsocksx: use variant PyBuild/Compile syntax, add src package, refresh patches
This commit is contained in:
commit
72a4ac1585
3 changed files with 25 additions and 16 deletions
|
@ -1,5 +1,5 @@
|
||||||
#
|
#
|
||||||
# Copyright (C) 2015-2016 OpenWrt.org
|
# Copyright (C) 2015, 2017-2018 OpenWrt.org
|
||||||
#
|
#
|
||||||
# This is free software, licensed under the GNU General Public License v2.
|
# This is free software, licensed under the GNU General Public License v2.
|
||||||
# See /LICENSE for more information.
|
# See /LICENSE for more information.
|
||||||
|
@ -7,14 +7,16 @@
|
||||||
|
|
||||||
include $(TOPDIR)/rules.mk
|
include $(TOPDIR)/rules.mk
|
||||||
|
|
||||||
PKG_NAME:=txsocksx
|
PKG_NAME:=python-txsocksx
|
||||||
PKG_VERSION:=1.15.0.2
|
PKG_VERSION:=1.15.0.2
|
||||||
PKG_RELEASE:=1
|
PKG_RELEASE:=2
|
||||||
|
|
||||||
PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz
|
PKG_SOURCE:=txsocksx-$(PKG_VERSION).tar.gz
|
||||||
PKG_SOURCE_URL:=https://pypi.python.org/packages/source/t/txsocksx
|
PKG_SOURCE_URL:=https://pypi.python.org/packages/source/t/txsocksx
|
||||||
PKG_HASH:=4f79b5225ce29709bfcee45e6f726e65b70fd6f1399d1898e54303dbd6f8065f
|
PKG_HASH:=4f79b5225ce29709bfcee45e6f726e65b70fd6f1399d1898e54303dbd6f8065f
|
||||||
|
|
||||||
|
PKG_BUILD_DIR:=$(BUILD_DIR)/$(BUILD_VARIANT)-txsocksx-$(PKG_VERSION)
|
||||||
|
|
||||||
PKG_LICENSE:=ISC
|
PKG_LICENSE:=ISC
|
||||||
PKG_LICENSE_FILES:=COPYING
|
PKG_LICENSE_FILES:=COPYING
|
||||||
PKG_MAINTAINER:=Jeffery To <jeffery.to@gmail.com>
|
PKG_MAINTAINER:=Jeffery To <jeffery.to@gmail.com>
|
||||||
|
@ -22,13 +24,23 @@ PKG_MAINTAINER:=Jeffery To <jeffery.to@gmail.com>
|
||||||
include $(INCLUDE_DIR)/package.mk
|
include $(INCLUDE_DIR)/package.mk
|
||||||
include ../python-package.mk
|
include ../python-package.mk
|
||||||
|
|
||||||
|
PKG_UNPACK:=$(HOST_TAR) -C $(PKG_BUILD_DIR) --strip-components=1 -xzf $(DL_DIR)/$(PKG_SOURCE)
|
||||||
|
|
||||||
|
define Package/python-txsocksx/Default
|
||||||
|
SECTION:=lang
|
||||||
|
CATEGORY:=Languages
|
||||||
|
SUBMENU:=Python
|
||||||
|
URL:=https://github.com/habnabit/txsocksx
|
||||||
|
endef
|
||||||
|
|
||||||
define Package/python-txsocksx
|
define Package/python-txsocksx
|
||||||
SECTION:=lang
|
$(call Package/python-txsocksx/Default)
|
||||||
CATEGORY:=Languages
|
TITLE:=python-txsocksx
|
||||||
SUBMENU:=Python
|
DEPENDS:= \
|
||||||
TITLE:=python-txsocksx
|
+PACKAGE_python-txsocksx:python-light \
|
||||||
URL:=https://github.com/habnabit/txsocksx
|
+PACKAGE_python-txsocksx:python-parsley \
|
||||||
DEPENDS:=+python-light +python-parsley +twisted
|
+PACKAGE_python-txsocksx:twisted
|
||||||
|
VARIANT:=python
|
||||||
endef
|
endef
|
||||||
|
|
||||||
define Package/python-txsocksx/description
|
define Package/python-txsocksx/description
|
||||||
|
@ -36,7 +48,7 @@ txsocksx is SOCKS4/4a and SOCKS5 client endpoints for Twisted 10.1 or
|
||||||
greater.
|
greater.
|
||||||
endef
|
endef
|
||||||
|
|
||||||
define Build/Compile
|
define PyBuild/Compile
|
||||||
$(call Build/Compile/PyMod,, \
|
$(call Build/Compile/PyMod,, \
|
||||||
install --prefix="/usr" --root="$(PKG_INSTALL_DIR)", \
|
install --prefix="/usr" --root="$(PKG_INSTALL_DIR)", \
|
||||||
PKG_VERSION="$(PKG_VERSION)" \
|
PKG_VERSION="$(PKG_VERSION)" \
|
||||||
|
@ -45,3 +57,4 @@ endef
|
||||||
|
|
||||||
$(eval $(call PyPackage,python-txsocksx))
|
$(eval $(call PyPackage,python-txsocksx))
|
||||||
$(eval $(call BuildPackage,python-txsocksx))
|
$(eval $(call BuildPackage,python-txsocksx))
|
||||||
|
$(eval $(call BuildPackage,python-txsocksx-src))
|
||||||
|
|
|
@ -1,5 +1,3 @@
|
||||||
diff --git a/setup.py b/setup.py
|
|
||||||
index 7979f89..3873a1e 100644
|
|
||||||
--- a/setup.py
|
--- a/setup.py
|
||||||
+++ b/setup.py
|
+++ b/setup.py
|
||||||
@@ -35,5 +35,5 @@ setup(
|
@@ -35,5 +35,5 @@ setup(
|
||||||
|
|
|
@ -1,5 +1,3 @@
|
||||||
diff --git a/setup.py b/setup.py
|
|
||||||
index 7979f89..5e1abb3 100644
|
|
||||||
--- a/setup.py
|
--- a/setup.py
|
||||||
+++ b/setup.py
|
+++ b/setup.py
|
||||||
@@ -1,6 +1,8 @@
|
@@ -1,6 +1,8 @@
|
||||||
|
@ -25,5 +23,5 @@ index 7979f89..5e1abb3 100644
|
||||||
+ #},
|
+ #},
|
||||||
+ version=os.environ.get('PKG_VERSION'),
|
+ version=os.environ.get('PKG_VERSION'),
|
||||||
install_requires=install_requires,
|
install_requires=install_requires,
|
||||||
packages=['txsocksx', 'txsocksx.test'],
|
packages=['txsocksx'],
|
||||||
)
|
)
|
||||||
|
|
Loading…
Reference in a new issue