You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

64 lines
1.8 KiB

  1. #
  2. # This is free software, licensed under the GNU General Public License v2.
  3. # See /LICENSE for more information.
  4. #
  5. include $(TOPDIR)/rules.mk
  6. PKG_NAME:=python-jdcal
  7. PKG_VERSION:=1.4.1
  8. PKG_RELEASE:=1
  9. PKG_MAINTAINER:=Alexandru Ardelean <ardeleanalex@gmail.com>, Eneas U de Queiroz <cote2004-github@yahoo.com>
  10. PKG_LICENSE:=BSD-2-Clause
  11. PKG_LICENSE_FILES:=LICENSE.txt
  12. PKG_SOURCE:=jdcal-$(PKG_VERSION).tar.gz
  13. PKG_SOURCE_URL:=https://files.pythonhosted.org/packages/source/j/jdcal
  14. PKG_HASH:=472872e096eb8df219c23f2689fc336668bdb43d194094b5cc1707e1640acfc8
  15. PKG_BUILD_DIR:=$(BUILD_DIR)/$(BUILD_VARIANT)-jdcal-$(PKG_VERSION)
  16. include $(INCLUDE_DIR)/package.mk
  17. include ../python-package.mk
  18. include ../python3-package.mk
  19. PKG_UNPACK:=$(HOST_TAR) -C $(PKG_BUILD_DIR) --strip-components=1 -xzf $(DL_DIR)/$(PKG_SOURCE)
  20. define Package/python-jdcal/Default
  21. SUBMENU:=Python
  22. SECTION:=lang
  23. CATEGORY:=Languages
  24. TITLE:=Julian dates from proleptic Gregorian and Julian calendars
  25. URL:=https://github.com/phn/jdcal
  26. endef
  27. define Package/python-jdcal
  28. $(call Package/python-jdcal/Default)
  29. DEPENDS:= +PACKAGE_python-jdcal:python-light
  30. VARIANT:=python
  31. endef
  32. define Package/python3-jdcal
  33. $(call Package/python-jdcal/Default)
  34. DEPENDS:= +PACKAGE_python3-jdcal:python3-light
  35. VARIANT:=python3
  36. endef
  37. define Package/python-jdcal/description
  38. This module contains functions for converting between Julian dates and calendar dates.
  39. endef
  40. define Package/python3-jdcal/description
  41. $(call Package/python-jdcal/description)
  42. .
  43. (Variant for Python3)
  44. endef
  45. $(eval $(call PyPackage,python-jdcal))
  46. $(eval $(call BuildPackage,python-jdcal))
  47. $(eval $(call BuildPackage,python-jdcal-src))
  48. $(eval $(call Py3Package,python3-jdcal))
  49. $(eval $(call BuildPackage,python3-jdcal))
  50. $(eval $(call BuildPackage,python3-jdcal-src))