The mercurial package was expecting 2.5 to be the used python version. Fix it by
[packages.git] / net / mercurial / Makefile
1 #
2 # Copyright (C) 2006,2009 OpenWrt.org
3 #
4 # This is free software, licensed under the GNU General Public License v2.
5 # See /LICENSE for more information.
6 #
7 # $Id$
8
9 include $(TOPDIR)/rules.mk
10
11 PKG_NAME:=mercurial
12 PKG_VERSION:=1.1.2
13 PKG_RELEASE:=1
14
15 PKG_SOURCE_URL:=http://selenic.com/mercurial/release/
16 PKG_SOURCE:=mercurial-$(PKG_VERSION).tar.gz
17 PKG_MD5SUM:=4fd3b9a2e5dcd025840c3849b136bec8
18 PKG_BUILD_DEPENDS:=python-mini
19
20 include $(INCLUDE_DIR)/package.mk
21 -include $(if $(DUMP),,$(STAGING_DIR)/mk/python-package.mk)
22
23 define Package/mercurial
24   SECTION:=net
25   CATEGORY:=Network
26   DEPENDS:=python
27   TITLE:=Mercurial Source Control Management (SCM) system
28   URL:=http://www.selenic.com/mercurial/
29 endef
30
31 define Package/mercurial/description
32   A fast, lightweight Source Control Management system designed for efficient handling of very large distributed projects.
33 endef
34
35 define Build/Compile
36         $(call Build/Compile/PyMod,, \
37                 install --prefix="$(PKG_INSTALL_DIR)", \
38     )
39 endef
40
41 define Package/mercurial/install
42         $(INSTALL_DIR) $(1)/usr/bin
43         $(INSTALL_DIR) $(1)/usr/lib
44         $(CP) $(PKG_INSTALL_DIR)/bin $(1)/usr
45         $(CP) $(PKG_INSTALL_DIR)/lib $(1)/usr
46 endef
47
48 $(eval $(call BuildPackage,mercurial))