From: pi31415 Date: Thu, 24 May 2018 16:14:41 +0000 (-0800) Subject: Splits tinyscheme into two packages X-Git-Url: https://git.librecmc.org/?a=commitdiff_plain;h=173bea0a51d2702f6885f8d3a7c3a2f2fb8c8c7a;p=librecmc%2Fpackage-feed.git Splits tinyscheme into two packages --- diff --git a/lang/tinyscheme/Config.in b/lang/tinyscheme/Config.in deleted file mode 100644 index 51461ed..0000000 --- a/lang/tinyscheme/Config.in +++ /dev/null @@ -1,12 +0,0 @@ -menu "Configuration" - depends on PACKAGE_tinyscheme - -config TINYSCHEME_SHARED_LIB - bool "Install shared library" - default n - -config TINYSCHEME_AR_LIB - bool "Install library archive file" - default n - -endmenu diff --git a/lang/tinyscheme/Makefile b/lang/tinyscheme/Makefile index 8bb049e..eed24c2 100644 --- a/lang/tinyscheme/Makefile +++ b/lang/tinyscheme/Makefile @@ -38,18 +38,31 @@ include $(INCLUDE_DIR)/package.mk define Package/tinyscheme SECTION:=lang CATEGORY:=Languages - TITLE:=TinyScheme programming language + TITLE:=Interpreter for the TinyScheme programming language URL:=http://tinyscheme.sourceforge.net MAINTAINER=Christopher Howard endef -define Package/tinyscheme/config - source "$(SOURCE)/Config.in" +define Package/tinyscheme-embedded + SECTION:=lang + CATEGORY:=Languages + TITLE:=Library for embedding the TinyScheme programming language + URL:=http://tinyscheme.sourceforge.net + MAINTAINER=Christopher Howard + DEPENDS:=tinyscheme endef define Package/tinyscheme/description TinyScheme is a lightweight Scheme interpreter that implements as large a subset of R5RS as was possible without getting very large and complicated. +This package installs the tinyscheme interpreter and init file. +endef + +define Package/tinyscheme-embedded/description +TinyScheme is a lightweight Scheme interpreter that implements as large +a subset of R5RS as was possible without getting very large and complicated. +This package installs the library required for embedding TinyScheme in a C +program. endef define Build/Compile @@ -59,15 +72,15 @@ endef define Package/tinyscheme/install $(INSTALL_DIR) $(1)/usr/bin $(INSTALL_BIN) $(PKG_BUILD_DIR)/scheme $(1)/usr/bin/tinyscheme + $(INSTALL_DIR) $(1)/usr/lib/tinyscheme + $(INSTALL_DATA) $(PKG_BUILD_DIR)/init.scm $(1)/usr/lib/tinyscheme/init.scm +endef + +define Package/tinyscheme-embedded/install $(INSTALL_DIR) $(1)/usr/lib -ifeq ($(CONFIG_TINYSCHEME_SHARED_LIB),y) $(INSTALL_DATA) $(PKG_BUILD_DIR)/libtinyscheme.so $(1)/usr/lib/libtinyscheme.so -endif -ifeq ($(CONFIG_TINYSCHEME_AR_LIB),y) $(INSTALL_DATA) $(PKG_BUILD_DIR)/libtinyscheme.a $(1)/usr/lib/libtinyscheme.a -endif - $(INSTALL_DIR) $(1)/usr/lib/tinyscheme - $(INSTALL_DATA) $(PKG_BUILD_DIR)/init.scm $(1)/usr/lib/tinyscheme/init.scm endef $(eval $(call BuildPackage,tinyscheme)) +$(eval $(call BuildPackage,tinyscheme-embedded))