From f582b9b2ff09be600516cc4d7e5e434f6f1b1a67 Mon Sep 17 00:00:00 2001 From: Alexander Aring Date: Tue, 25 Mar 2014 20:53:50 +0100 Subject: simplerpl: add new package Signed-off-by: Alexander Aring Signed-off-by: Michael Olbrich --- rules/simplerpl.make | 79 ++++++++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 79 insertions(+) create mode 100644 rules/simplerpl.make (limited to 'rules/simplerpl.make') diff --git a/rules/simplerpl.make b/rules/simplerpl.make new file mode 100644 index 000000000..a35eee175 --- /dev/null +++ b/rules/simplerpl.make @@ -0,0 +1,79 @@ +# -*-makefile-*- +# +# Copyright (C) 2014 by Alexander Aring +# +# See CREDITS for details about who has contributed to this project. +# +# For further information about the PTXdist project and license conditions +# see the README file. +# + +# +# We provide this package +# +PACKAGES-$(PTXCONF_SIMPLERPL) += simplerpl + +# +# Paths and names +# +SIMPLERPL_VERSION := 1.0 +SIMPLERPL_MD5 := 8544a9f7414e98cd2d17ff15332c8eee +SIMPLERPL := simplerpl-$(SIMPLERPL_VERSION) +SIMPLERPL_SUFFIX := tar.gz +SIMPLERPL_URL := http://cakelab.org/~eintopf/RPL/$(SIMPLERPL).$(SIMPLERPL_SUFFIX) +SIMPLERPL_SOURCE := $(SRCDIR)/$(SIMPLERPL).$(SIMPLERPL_SUFFIX) +SIMPLERPL_DIR := $(BUILDDIR)/$(SIMPLERPL) + +# ---------------------------------------------------------------------------- +# Prepare +# ---------------------------------------------------------------------------- + +SIMPLERPL_CONF_TOOL := NO + +# ---------------------------------------------------------------------------- +# Compile +# ---------------------------------------------------------------------------- + +$(STATEDIR)/simplerpl.compile: + @$(call targetinfo) + @cd $(SIMPLERPL_DIR) && \ + $(CROSS_ENV) $(CROSS_PYTHON) setup.py build -e "/usr/bin/env python" + @$(call touch) + +# ---------------------------------------------------------------------------- +# Install +# ---------------------------------------------------------------------------- + +$(STATEDIR)/simplerpl.install: + @$(call targetinfo) + @cd $(SIMPLERPL_DIR) && \ + $(CROSS_PYTHON) \ + setup.py install --root=$(SIMPLERPL_PKGDIR) --prefix="/usr" + @$(call touch) + +# ---------------------------------------------------------------------------- +# Target-Install +# ---------------------------------------------------------------------------- + +$(STATEDIR)/simplerpl.targetinstall: + @$(call targetinfo) + + @$(call install_init, simplerpl) + @$(call install_fixup, simplerpl,PRIORITY,optional) + @$(call install_fixup, simplerpl,SECTION,base) + @$(call install_fixup, simplerpl,AUTHOR,"Alexander Aring ") + @$(call install_fixup, simplerpl,DESCRIPTION,missing) + + @for file in $(shell cd $(SIMPLERPL_PKGDIR) && find . -name "*.pyc"); \ + do \ + $(call install_copy, simplerpl, 0, 0, 0644, -, /$$file); \ + done + + @$(call install_copy, simplerpl, 0, 0, 0755, -, /usr/bin/cliRPL.py) + @$(call install_copy, simplerpl, 0, 0, 0755, -, /usr/bin/simpleRPL.py) + + @$(call install_finish, simplerpl) + + @$(call touch) + +# vim: syntax=make -- cgit v1.2.3