1
0
mirror of git://projects.qi-hardware.com/openwrt-packages.git synced 2024-09-30 05:16:20 +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 CATEGORY:=Languages
SUBMENU:=Lojban SUBMENU:=Lojban
SECTION:=lang SECTION:=lang
DEPENDS:=+python
endef endef
define Package/jbofihe/description define Package/jbofihe/description
@ -40,7 +41,7 @@ endef
# on the host machine and copy it into the package. # on the host machine and copy it into the package.
# #
define Build/Compile 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 endef
define Package/makfa/install define Package/makfa/install
@ -57,4 +58,8 @@ define Package/makfa/install
$(1)/usr/share/$(PKG_NAME)/ $(1)/usr/share/$(PKG_NAME)/
endef endef
$(eval $(call RequireCommand,python, \
Please install Python 2.x \
))
$(eval $(call BuildPackage,makfa)) $(eval $(call BuildPackage,makfa))