From 4f2d7949f03e1c198bc888f2d05f421d35c57e21 Mon Sep 17 00:00:00 2001 From: V3n3RiX Date: Mon, 9 Oct 2017 18:53:29 +0100 Subject: reinit the tree, so we can have metadata --- dev-tcltk/ck/Manifest | 7 ++ dev-tcltk/ck/ck-8.0-r4.ebuild | 48 ++++++++++++ dev-tcltk/ck/files/ck-8.0-gentoo.patch | 133 +++++++++++++++++++++++++++++++++ dev-tcltk/ck/metadata.xml | 8 ++ 4 files changed, 196 insertions(+) create mode 100644 dev-tcltk/ck/Manifest create mode 100644 dev-tcltk/ck/ck-8.0-r4.ebuild create mode 100644 dev-tcltk/ck/files/ck-8.0-gentoo.patch create mode 100644 dev-tcltk/ck/metadata.xml (limited to 'dev-tcltk/ck') diff --git a/dev-tcltk/ck/Manifest b/dev-tcltk/ck/Manifest new file mode 100644 index 000000000000..7a624b9f136d --- /dev/null +++ b/dev-tcltk/ck/Manifest @@ -0,0 +1,7 @@ +AUX ck-8.0-gentoo.patch 4453 SHA256 f8abdb09449549750a5d1aef70f6575661da5bfd992b6fccd39589fa3bdf834d SHA512 cfe65801f1c91f123b580cc08759959be6060799721e688a4d2b11e73879f1b3c41d0b8f8192dff1a0e93d921f38737b283a272f92e7b740cc10ec7bd19c19d6 WHIRLPOOL a526c0f30a976258da6ca582d09f514e9331f15b7fabe1282192aa1ab23b70f915e89a189de261ed58d6229b1212b70b40b19f29c3531fd82ae21ce0881b9428 +DIST ck-8.0-tcl8.6.patch.xz 12836 SHA256 e414eb16f1905738474e2d1c773c369c54a219ede311289e1edbe1a22c53116b SHA512 55682b9490ac5470ef14213f0dac3fa10139a13a7e3d915773c50285038b3b566c140fcc5f4721a091744e45bbef405c2ee3ee22daf71a3a82148acba28b0dde WHIRLPOOL d5317abce4eaf875b9980a9e2051465df1f3a70b1edb764632623784a287d8096e36c4cf8b42a7d5f879a822dc9e273215ba438f1b865fb7a62b5bc1e2cc0147 +DIST ck8.0.tar.gz 400262 SHA256 11588244fcbbb1e19658357194ade5ad3877e6315a04530e6a41c18ee99babdf SHA512 68d92be354e5ec24830cc9a20d1cbb5a27d4e04369ceecf6fdad7759da3d9b4909970bf54abdf5f5b015fd0d08b8680a33cdcdf468b9007afc21e69c7381b262 WHIRLPOOL 69926cee3b4879d47f762425ca39ca08ca9bad2021162b7540af1edd1770fa4eeafe2e5be0c923787945779c7fc92cb7a168fe160bc75151b56182c45092f4cd +EBUILD ck-8.0-r4.ebuild 920 SHA256 5595d24d1f3530262cb9f0f80cbb0dd4f90dca7dfe2d91868964257b2bec2720 SHA512 7d8b412006a4ee28fefaa2521684db3fafd52b885a4fff19349168dbe51ab1bac1e4c863e2d1c93cc19949adb3076b4d7d3c8f50a78ac4c50de72ce71f7a8ad2 WHIRLPOOL 32ef02284532de287f7cd48549130ae3f59d2dc85ea6d850bf75f003d77b6d207a37a917491065eafe68e99867555fe28cba2eff4f9e117a67ae48cfcf5954d7 +MISC ChangeLog 2461 SHA256 416332b3c7ebb27a8ba8857ac05066386d7b56efe2fc2a247e32985805306ea2 SHA512 aa5221e7938afaccf7070d34e8b94b598f884f47c2cd39a947c920c749a4ef9fd73b34c29d86ec9f2d2f9b655039525c9778925ff7634ebac0aa898342b2fe66 WHIRLPOOL ebb0d8964b406f46c471dceb7832376bd82bf760bac1bfc8a781be2e399149f2b174983706da980505df1dbd2ae03e8b714cd88eaa39c0f0ae4788a8598a7733 +MISC ChangeLog-2015 1893 SHA256 2884dd412eeaf8d8c4d1a677cdf8f2a143ba7fd0a2b897568580b45e64ac093c SHA512 1b51adacd711dc146e69b3ad5be3952c89d9ba556e89e14f39a7d0271f35180c3ea489dcb22972dc65e5affdd056561792deff7dd1a824eeb843e2a7510104c5 WHIRLPOOL e6d1fd13d62d4704dd262f3d9d3aa549e6ebf29f44d4fbc4bc4f6d64baa0f8c2647b0d08c6312333a83b15c879b8281e495b25cf04ed14cbb01136a174b948a3 +MISC metadata.xml 259 SHA256 f3ad7890286839b12dc011613c2ba3df199a206c295ba8c433a8fe7f0dcc5815 SHA512 5943f2c9dc9a55862bae4c01be9e1f27304ffc1ce48d67341b4a19793c0bb11fe3d1a419af924ac360aeeafbce28018971602019a559a8a6c5939e05e3567639 WHIRLPOOL f5ad746e91e08e44d2d857057d7203fe515cbdd295f69a2d3ce2cb35343d2dc3f2879b57d00e8782bd416bfd36ce4504a7a91bbcf325eabe71075d0726e2bece diff --git a/dev-tcltk/ck/ck-8.0-r4.ebuild b/dev-tcltk/ck/ck-8.0-r4.ebuild new file mode 100644 index 000000000000..78193f8a902b --- /dev/null +++ b/dev-tcltk/ck/ck-8.0-r4.ebuild @@ -0,0 +1,48 @@ +# Copyright 1999-2014 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 + +EAPI=5 + +inherit eutils multilib toolchain-funcs + +MY_P=${PN}${PV} +S=${WORKDIR}/${MY_P} + +DESCRIPTION="A curses based toolkit for tcl" +HOMEPAGE="http://www.ch-werner.de/ck/" +SRC_URI=" + http://www.ch-werner.de/ck/${MY_P}.tar.gz + https://dev.gentoo.org/~jlec/distfiles/${P}-tcl8.6.patch.xz" + +LICENSE="BSD" +SLOT="0" +KEYWORDS="amd64 x86" +IUSE="" + +RDEPEND=" + dev-lang/tk + sys-libs/ncurses[gpm] + sys-libs/gpm + " +DEPEND="${RDEPEND} + virtual/pkgconfig" + +src_prepare() { + epatch \ + "${FILESDIR}"/${P}-gentoo.patch \ + "${WORKDIR}"/${P}-tcl8.6.patch + sed \ + -e "/^LIB_INSTALL_DIR/s:lib$:$(get_libdir):g" \ + -i Makefile.in || die +} + +src_configure() { + econf \ + --with-tcl="${EPREFIX}/usr/$(get_libdir)" \ + --enable-shared +} + +src_compile() { + emake \ + CURSES_LIB_SWITCHES="$($(tc-getPKG_CONFIG) --libs ncursesw) -lgpm" +} diff --git a/dev-tcltk/ck/files/ck-8.0-gentoo.patch b/dev-tcltk/ck/files/ck-8.0-gentoo.patch new file mode 100644 index 000000000000..727f7e8b5356 --- /dev/null +++ b/dev-tcltk/ck/files/ck-8.0-gentoo.patch @@ -0,0 +1,133 @@ + Makefile.in | 40 ++++++++++++++++------------------------ + 1 files changed, 16 insertions(+), 24 deletions(-) + +diff --git a/Makefile.in b/Makefile.in +index 00960d9..16d4123 100644 +--- a/Makefile.in ++++ b/Makefile.in +@@ -29,9 +29,9 @@ exec_prefix = @exec_prefix@ + # The following definition can be set to non-null for special systems + # like AFS with replication. It allows the pathnames used for installation + # to be different than those used for actually reference files at +-# run-time. INSTALL_ROOT is prepended to $prefix and $exec_prefix ++# run-time. DESTDIR is prepended to $prefix and $exec_prefix + # when installing files. +-INSTALL_ROOT = ++DESTDIR = + + # Directory from which applications will reference the library of Tcl + # scripts (note: you can set the CK_LIBRARY environment variable at +@@ -39,22 +39,22 @@ INSTALL_ROOT = + CK_LIBRARY = $(prefix)/lib/ck$(VERSION) + + # Path name to use when installing library scripts: +-SCRIPT_INSTALL_DIR = $(INSTALL_ROOT)$(CK_LIBRARY) ++SCRIPT_INSTALL_DIR = $(DESTDIR)$(CK_LIBRARY) + + # Directory in which to install the archive libck*: +-LIB_INSTALL_DIR = $(INSTALL_ROOT)$(exec_prefix)/lib ++LIB_INSTALL_DIR = $(DESTDIR)$(exec_prefix)/lib + + # Directory in which to install the program cwsh: +-BIN_INSTALL_DIR = $(INSTALL_ROOT)$(exec_prefix)/bin ++BIN_INSTALL_DIR = $(DESTDIR)$(exec_prefix)/bin + + # Directory from which the program cwsh should be referenced by scripts: + BIN_DIR = $(exec_prefix)/bin + + # Directory in which to install the include file ck.h: +-INCLUDE_INSTALL_DIR = $(INSTALL_ROOT)$(prefix)/include ++INCLUDE_INSTALL_DIR = $(DESTDIR)$(prefix)/include + + # Top-level directory for manual entries: +-MAN_INSTALL_DIR = $(INSTALL_ROOT)$(prefix)/man ++MAN_INSTALL_DIR = $(DESTDIR)$(prefix)/share/man + + # Directory in which to install manual entry for cwsh: + MAN1_INSTALL_DIR = $(MAN_INSTALL_DIR)/man1 +@@ -96,7 +96,7 @@ LIBS = @TCL_BUILD_LIB_SPEC@ @LIBS@ $(CURSES_LIB_SWITCHES) @DL_LIBS@ @MATH_LIBS@ + + # To change the compiler switches, for example to change from -O + # to -g, change the following line: +-CFLAGS = -O ++#CFLAGS = -O + + # To disable ANSI-C procedure prototypes reverse the comment characters + # on the following lines: +@@ -231,14 +231,14 @@ configInfo: Makefile + @echo "CK_CURSES_INCLUDES = ${CURSES_INCLUDES}" >> configInfo + @echo "CK_LIBS = ${CURSES_LIB_SWITCHES} @LIBS@" >> configInfo + +-install: install-binaries install-libraries ++install: install-man install-binaries install-libraries + + install-binaries: $(CK_LIB_FILE) cwsh + @for i in $(LIB_INSTALL_DIR) $(BIN_INSTALL_DIR) ; \ + do \ + if [ ! -d $$i ] ; then \ + echo "Making directory $$i"; \ +- mkdir $$i; \ ++ mkdir -p $$i; \ + chmod 755 $$i; \ + else true; \ + fi; \ +@@ -251,12 +251,12 @@ install-binaries: $(CK_LIB_FILE) cwsh + @$(INSTALL_PROGRAM) cwsh $(BIN_INSTALL_DIR)/cwsh + + install-libraries: +- @for i in $(INSTALL_ROOT)$(prefix)/lib $(INCLUDE_INSTALL_DIR) \ ++ @for i in $(DESTDIR)$(prefix)/lib $(INCLUDE_INSTALL_DIR) \ + $(SCRIPT_INSTALL_DIR) ; \ + do \ + if [ ! -d $$i ] ; then \ + echo "Making directory $$i"; \ +- mkdir $$i; \ ++ mkdir -p $$i; \ + chmod 755 $$i; \ + else true; \ + fi; \ +@@ -270,13 +270,13 @@ install-libraries: + done; + + install-demos: +- @for i in $(INSTALL_ROOT)$(prefix)/lib $(SCRIPT_INSTALL_DIR) \ ++ @for i in $(DESTDIR)$(prefix)/lib $(SCRIPT_INSTALL_DIR) \ + $(SCRIPT_INSTALL_DIR)/demos \ + $(SCRIPT_INSTALL_DIR)/demos/images ; \ + do \ + if [ ! -d $$i ] ; then \ + echo "Making directory $$i"; \ +- mkdir $$i; \ ++ mkdir -p $$i; \ + chmod 755 $$i; \ + else true; \ + fi; \ +@@ -301,11 +301,11 @@ install-demos: + done; + + install-man: +- @for i in $(MAN_INSTALL_DIR) $(MAN1_INSTALL_DIR) $(MAN3_INSTALL_DIR) $(MANN_INSTALL_DIR) ; \ ++ @for i in $(MAN_INSTALL_DIR) $(MAN1_INSTALL_DIR) $(MAN3_INSTALL_DIR); \ + do \ + if [ ! -d $$i ] ; then \ + echo "Making directory $$i"; \ +- mkdir $$i; \ ++ mkdir -p $$i; \ + chmod 755 $$i; \ + else true; \ + fi; \ +@@ -326,14 +326,6 @@ install-man: + $$i > $(MAN3_INSTALL_DIR)/$$i; \ + chmod 444 $(MAN3_INSTALL_DIR)/$$i; \ + done; +- @cd $(SRC_DIR)/doc; for i in *.n; \ +- do \ +- echo "Installing doc/$$i"; \ +- rm -f $(MANN_INSTALL_DIR)/$$i; \ +- sed -e '/man\.macros/r man.macros' -e '/man\.macros/d' \ +- $$i > $(MANN_INSTALL_DIR)/$$i; \ +- chmod 444 $(MANN_INSTALL_DIR)/$$i; \ +- done; + + Makefile: $(SRC_DIR)/Makefile.in + $(SHELL) config.status diff --git a/dev-tcltk/ck/metadata.xml b/dev-tcltk/ck/metadata.xml new file mode 100644 index 000000000000..227dda5ba584 --- /dev/null +++ b/dev-tcltk/ck/metadata.xml @@ -0,0 +1,8 @@ + + + + + tcltk@gentoo.org + Gentoo Tcltk Project + + -- cgit v1.2.3