1
0
mirror of git://projects.qi-hardware.com/openwrt-packages.git synced 2024-09-30 00:57:16 +03:00

makfa package python cleanup

* add a depend line.
 * check that python is installed.
 * call python directly, rather than using $(PYTHON) (I could find
   no use of the $PYTHON variable in any other packages.
This commit is contained in:
Alan Post 2010-10-08 22:12:32 -06:00
parent a3c7562d28
commit 0847b73e5a

View File

@ -27,6 +27,7 @@ define Package/makfa
CATEGORY:=Languages
SUBMENU:=Lojban
SECTION:=lang
DEPENDS:=+python
endef
define Package/jbofihe/description
@ -40,7 +41,7 @@ endef
# on the host machine and copy it into the package.
#
define Build/Compile
$(PYTHON) $(PKG_BUILD_DIR)/makfa update en $(PKG_BUILD_DIR)/makfa.dump
python $(PKG_BUILD_DIR)/makfa update en $(PKG_BUILD_DIR)/makfa.dump
endef
define Package/makfa/install
@ -57,4 +58,8 @@ define Package/makfa/install
$(1)/usr/share/$(PKG_NAME)/
endef
$(eval $(call RequireCommand,python, \
Please install Python 2.x \
))
$(eval $(call BuildPackage,makfa))