mirror of
https://github.com/openwrt/packages.git
synced 2025-12-19 17:11:21 +00:00
python packages: move all things python under lang/python
I admit this may be be a bit aggressive, but the lang folder is getting cluttered/filled up with Python, PHP, Perl, Ruby, etc. packages. Makes sense to try to group them into per-lang folders. I took the Pythons. Signed-off-by: Alexandru Ardelean <ardeleanalex@gmail.com>
This commit is contained in:
27
lang/python/python3/files/python3-package-dev.mk
Normal file
27
lang/python/python3/files/python3-package-dev.mk
Normal file
@@ -0,0 +1,27 @@
|
||||
#
|
||||
# Copyright (C) 2006-2016 OpenWrt.org
|
||||
#
|
||||
# This is free software, licensed under the GNU General Public License v2.
|
||||
# See /LICENSE for more information.
|
||||
#
|
||||
|
||||
define Package/python3-dev
|
||||
$(call Package/python3/Default)
|
||||
TITLE:=Python $(PYTHON3_VERSION) development files
|
||||
DEPENDS:=+python3 +python3-lib2to3
|
||||
endef
|
||||
|
||||
define Py3Package/python3-dev/install
|
||||
$(INSTALL_DIR) $(1)/usr/bin $(1)/usr/lib
|
||||
$(CP) $(PKG_INSTALL_DIR)/usr/bin/python$(PYTHON3_VERSION)-config $(1)/usr/bin
|
||||
$(LN) python$(PYTHON3_VERSION)-config $(1)/usr/bin/python3-config
|
||||
$(LN) python$(PYTHON_VERSION)/config-$(PYTHON_VERSION)/libpython$(PYTHON3_VERSION).a $(1)/usr/lib/
|
||||
endef
|
||||
|
||||
$(eval $(call Py3BasePackage,python3-dev, \
|
||||
/usr/lib/python$(PYTHON_VERSION)/config-$(PYTHON_VERSION) \
|
||||
/usr/include/python$(PYTHON_VERSION) \
|
||||
/usr/lib/pkgconfig \
|
||||
, \
|
||||
DO_NOT_ADD_TO_PACKAGE_DEPENDS \
|
||||
))
|
||||
Reference in New Issue
Block a user