summaryrefslogtreecommitdiff
path: root/dev-libs/libmcal
diff options
context:
space:
mode:
authorV3n3RiX <venerix@redcorelinux.org>2018-07-14 20:57:42 +0100
committerV3n3RiX <venerix@redcorelinux.org>2018-07-14 20:57:42 +0100
commit1798c4aeca70ac8d0a243684d6a798fbc65735f8 (patch)
treee48e19cb6fa03de18e1c63e1a93371b7ebc4eb56 /dev-libs/libmcal
parentd87262dd706fec50cd150aab3e93883b6337466d (diff)
gentoo resync : 14.07.2018
Diffstat (limited to 'dev-libs/libmcal')
-rw-r--r--dev-libs/libmcal/Manifest12
-rw-r--r--dev-libs/libmcal/files/libmcal-0.7-flex-2.5.37.patch14
-rw-r--r--dev-libs/libmcal/files/libmcal-0.7-flexfix.patch29
-rw-r--r--dev-libs/libmcal/files/libmcal-0.7-fpic.patch56
-rw-r--r--dev-libs/libmcal/files/libmcal-0.7-gcc4.patch32
-rw-r--r--dev-libs/libmcal/files/libmcal-0.7-libdir.patch25
-rw-r--r--dev-libs/libmcal/files/libmcal-0.7-r6-fpic.patch56
-rw-r--r--dev-libs/libmcal/files/libmcal-0.7-r6-gcc4.patch34
-rw-r--r--dev-libs/libmcal/libmcal-0.7-r5.ebuild69
-rw-r--r--dev-libs/libmcal/libmcal-0.7-r6.ebuild72
-rw-r--r--dev-libs/libmcal/metadata.xml11
11 files changed, 0 insertions, 410 deletions
diff --git a/dev-libs/libmcal/Manifest b/dev-libs/libmcal/Manifest
deleted file mode 100644
index 4d7bb132b5e6..000000000000
--- a/dev-libs/libmcal/Manifest
+++ /dev/null
@@ -1,12 +0,0 @@
-AUX libmcal-0.7-flex-2.5.37.patch 406 BLAKE2B 0024e287579e231fb1e4fdeb3a8a0b6850283e38dd692aeb641bc78424d5528dc0fea0c9f2db30c6196222ac4a2ec2a41d5fb044048a70946bbfdb5f30536c5e SHA512 4dae8efd58dc50ad72aa98ab1e4963c8f7dc55c233d16f7b9390e901604d6d1ec6aafd295d92876f62a02abc30286bb430fdf2081f46d0b499248bc945ae09be
-AUX libmcal-0.7-flexfix.patch 527 BLAKE2B ff63ac7503c186d749f740040bf8d3d99dcfd65527a405a8444d1d1827d6ddbfb16b52ef8be1ec5aa3f62c86ed854fce8cb8874ca310aef9bdf5a97b76a1d2b7 SHA512 b505c0a416a950a9bd7189f6fc41200a1e4e5149083452f9af1e02f263a5f7a24e19ab4a3304fa4d95c0096056dbcb8b4ad444e459daa44f136e11acad322411
-AUX libmcal-0.7-fpic.patch 1302 BLAKE2B 0df3e8e405df6371c9c41d1dc7c3b13ddd89609d0e4a8215b0e8bbea33ea19df8a80b2d2c51937f729fa058ea6af5f47f0aff72f024920a2d5471c3ab5289327 SHA512 16a84b63a60a33a0d415ca94364344d356e58ed7ad3bccd21c9591610bdf2977b839fabb4e24f1a370310a4b7c939371720a2938f31b1df73db704501d82def1
-AUX libmcal-0.7-gcc4.patch 1108 BLAKE2B 34d5599c7c45684e63a68401e6c8fc6e32162befba427ddedda82d2a5c8a0a3dddf80ad48cb88bc777f3a7ae8b073bb9b437b65d18387965834def4b68f9ae61 SHA512 17a760d6fba06999fc9a1fc5c7d0c269f84bfa5b9ed66db94e1ed39a2db24ebe66a23ee0066d191ab2484483438b2144e5cd032dad69503117029e07e389a636
-AUX libmcal-0.7-libdir.patch 888 BLAKE2B 1f6cc118f4d666ace783ffae1ad7a2c3c9a54e8386fea68e78d2dcf2fa92f16b690464a56f2eb88f8f49b7ce4e658729d3ac3f96da0781dac79d991128943cda SHA512 81cf2f29ec910237ccfaee08557060a260496055ea039545d60753ac716f5299b1758085bb75b1cf14de46c1ca87c60f8babb56aef9cf68368d092525421a1d4
-AUX libmcal-0.7-r6-fpic.patch 1336 BLAKE2B 8108361a8569ee9b7a230a87e5679f2f86ee3c300ca242fa8029fd93bb77cf87d9ac2ecf5e94a867eec33eaac82eba55b2069ee914f02580df366b8f3094f011 SHA512 71b117daac42fd345e6035bbab133a7c217f7123dd1aa924b8ce59191718638a14a3b57171e8f632960be57f96b09e267595318ab2e3c4b1c2d8862c71a5d3d9
-AUX libmcal-0.7-r6-gcc4.patch 1209 BLAKE2B 0bd70e49eea1ff89bfa5209349780a9f8265e7733af44f54f40193ff4a8dd22b015a3572e9232f91428835664daa99bc9ab665a750b7714b9ae885dd9654b017 SHA512 1f28a681b8d6ad79961570b8f6c5f6676fc666d3efe1fb25cbfea8df7175e7a732f07559d4fa914ff5cebcbabe65ec58bc83d407780cada3ac805a66f09d3ca6
-DIST libmcal-0.7.tar.gz 49039 BLAKE2B 78a2f74f92a6b34489b26eac90de1854b6151d78bea3f9e2b4225de8715e1276013e0574e4de3dc66888507f2e9fd432a11d2890f10193330da68e67e375660e SHA512 9d94d9acb663f9add43000be91c1c59e7d5a2a968b3526a97a37c7965df4b07e1e4efa92533bfd0aa92105a90efb7e062307a07b36ca1f21fdc9ea6928fea2f4
-DIST mcaldrivers-0.9.tar.gz 13445 BLAKE2B 3c10a07e6a5bde671f50abcedeb64b80fc9cfa140d63cab916673192d02fcec9e4c2dc54b09211031e68ae55aa77ab428abef0f84072e41bab3c2e4d94251952 SHA512 1dda4e09c85ac461bff4d812f51aaec600ecd6b337cce5f73c3b2a9a3f9a1685f5fbe915073df5f10b3ba16e1a6a0f8821c59e23b2600acde8a00de3f92960d9
-EBUILD libmcal-0.7-r5.ebuild 1940 BLAKE2B d569ae1d51a336e9b93ef04d657a98db542fe4accbe81529beae7916d5f2f1b8e6ec29728ad6de1aac62f685ec458afe0f875cbe89e58588245ec837ac9f3de1 SHA512 3718d52e50200f412a72c9bc1589326140e001f60f8474ab76df1450ed0d3b1530bd56db03f199ce68adb3dff26f9c81313e02b93ef6e1269e6e68e511e55b4a
-EBUILD libmcal-0.7-r6.ebuild 2117 BLAKE2B 14add8387c103f461f8ec1f33d49649288a61d2d2af62e1d31e292ad16efc8f5c4f5005077d6986680c5735ca7305a91704f2c5943d0b6b2d1e767553b7a750d SHA512 75b387e895966e3dfad63277e155d0a8596b252b4ca8ed103ca659d9cedf3a5ed67dc047847f2438e212888f7cf273d4592caec7fa877e03e6ded03bcfbaec2c
-MISC metadata.xml 327 BLAKE2B 493767ec9590c6ddfb33d5438e22a688c8ef713b91ca85d349c446607c4c94e4006ef182f1602f68e9dd44431b7279b594505d446c110a2957b193decc49f28d SHA512 ac68d82248ec86227d6f4da8f57fbd17f40db921e10269454369e866fab266261e6977a6f1341924edc21e6f0a62cb8c5a23c849003bab949d0890ca63d9140d
diff --git a/dev-libs/libmcal/files/libmcal-0.7-flex-2.5.37.patch b/dev-libs/libmcal/files/libmcal-0.7-flex-2.5.37.patch
deleted file mode 100644
index 8c2e38699876..000000000000
--- a/dev-libs/libmcal/files/libmcal-0.7-flex-2.5.37.patch
+++ /dev/null
@@ -1,14 +0,0 @@
---- libmcal.orig/icalroutines.h 2003-01-28 18:45:21.000000000 +0100
-+++ libmcal/icalroutines.h 2013-02-04 01:54:27.833995640 +0100
-@@ -48,8 +48,10 @@
-
-
- /* ICAL parser. */
-+#ifndef ical_yytext
- extern char *ical_yytext;
--extern int ical_yyleng;
-+extern size_t ical_yyleng;
-+#endif
- int ical_yylex(void);
- void ical_usebuf(const char *buf, size_t size);
- void ical_preprocess(char *buf, size_t *size);
diff --git a/dev-libs/libmcal/files/libmcal-0.7-flexfix.patch b/dev-libs/libmcal/files/libmcal-0.7-flexfix.patch
deleted file mode 100644
index 0088dce4ccc8..000000000000
--- a/dev-libs/libmcal/files/libmcal-0.7-flexfix.patch
+++ /dev/null
@@ -1,29 +0,0 @@
---- libmcal/icalscanner.lex 2003-01-28 09:45:21.000000000 -0800
-+++ libmcal/icalscanner.lex.new 2006-04-01 22:47:58.515410944 -0800
-@@ -32,13 +32,6 @@
- */
-
- #include "icalroutines.h"
--
--void
--ical_usebuf(const char *buf, size_t size)
--{
-- BEGIN(INITIAL);
-- yy_scan_bytes(buf, size);
--}
- %}
-
-
-@@ -68,3 +61,12 @@
- {LF} BEGIN(INITIAL); return ICALTOK_LF;
- . return ICALTOK_JUNK;
- <<EOF>> return ICALTOK_EOF;
-+
-+%%
-+
-+void
-+ical_usebuf(const char *buf, size_t size)
-+{
-+ BEGIN(INITIAL);
-+ yy_scan_bytes(buf, size);
-+}
diff --git a/dev-libs/libmcal/files/libmcal-0.7-fpic.patch b/dev-libs/libmcal/files/libmcal-0.7-fpic.patch
deleted file mode 100644
index be003d354a4c..000000000000
--- a/dev-libs/libmcal/files/libmcal-0.7-fpic.patch
+++ /dev/null
@@ -1,56 +0,0 @@
---- Makefile.in 2003-11-27 15:46:46.887752568 +0000
-+++ Makefile.in 2003-11-27 16:14:17.325847840 +0000
-@@ -7,7 +7,7 @@
-
- INCLUDE=@DRIVER_INCDIR@ ${OTHERINCDIR} -I.
-
--CFLAGS=-O0 -Wall -g ${INCLUDE} ${OTHER_CFLAGS}
-+CFLAGS=-O0 -Wall -g ${OTHER_CFLAGS}
-
- LIBOBJS=mcal.o datetime.o lex.ical_yy.o icalroutines.o cal_misc.o $(DRIVER_LIBS)
- ALLOBJS=${LIBOBJS} tester.o
-@@ -17,6 +17,9 @@
- LIBCAL=libmcal.a
- LIBCAL_SO=libmcal.so
-
-+%.o: %.c
-+ gcc $(CFLAGS) -fPIC $(INCLUDE) -c -o $@ $<
-+
- all: libmcal.a libmcal.so
-
- install: libmcal.a libmcal.so
-@@ -38,7 +41,7 @@
-
- libmcal.so: $(LIBOBJS)
- rm -f $(LIBCAL_SO)
-- gcc $(CFLAGS) -shared -o $(LIBCAL_SO) $(LIBOBJS)
-+ gcc $(CFLAGS) $(INCLUDE) -shared -o $(LIBCAL_SO) $(LIBOBJS)
-
- lex.ical_yy.c: icalscanner.lex
- $(FLEX) $<
---- mstore/Makefile.old 2004-08-08 16:37:13.641537544 +0100
-+++ mstore/Makefile 2004-08-08 16:37:35.473218624 +0100
-@@ -8,6 +8,10 @@
- ALLOBJS=mstore.o
- TARGET=mstore_driver.o
-
-+%.o: %.c
-+ gcc $(CFLAGS) -fPIC $(INCLUDE) -c -o $@ $<
-+
-+
- all: $(TARGET)
-
-
---- icap/Makefile.old 2004-08-08 16:38:58.353618888 +0100
-+++ icap/Makefile 2004-08-08 16:39:18.841504256 +0100
-@@ -7,6 +7,10 @@
- ALLOBJS=icap.o icaproutines.o lex.icap_yy.o
- TARGET=icap_driver.o
-
-+%.o: %.c
-+ gcc $(CFLAGS) -fPIC $(INCLUDE) -c -o $@ $<
-+
-+
- all: $(TARGET)
-
-
diff --git a/dev-libs/libmcal/files/libmcal-0.7-gcc4.patch b/dev-libs/libmcal/files/libmcal-0.7-gcc4.patch
deleted file mode 100644
index d38d0c356dcb..000000000000
--- a/dev-libs/libmcal/files/libmcal-0.7-gcc4.patch
+++ /dev/null
@@ -1,32 +0,0 @@
---- a/icap/icap.c 2003-01-28 18:31:33.000000000 +0100
-+++ b/icap/icap.c 2005-08-12 15:04:36.000000000 +0200
-@@ -159,7 +159,7 @@
- if (!reopen) {
- if ((stream = calloc(1, sizeof(*stream))) == NULL)
- goto fail;
-- if ((DATA = calloc(1, sizeof(*DATA))) == NULL)
-+ if ((stream->data = calloc(1, sizeof(*DATA))) == NULL)
- goto fail;
-
- /* Copy host. */
---- a/mstore/mstore.c 2005-08-12 15:30:52.000000000 +0200
-+++ b/mstore/mstore.c 2005-08-12 15:31:38.000000000 +0200
-@@ -308,7 +308,7 @@
- if (!reopen) {
- if ((stream = calloc(1, sizeof(*stream))) == NULL)
- goto fail;
-- if ((DATA = calloc(1, sizeof(*DATA))) == NULL)
-+ if ((stream->data = calloc(1, sizeof(*DATA))) == NULL)
- goto fail;
- }
-
-@@ -773,7 +773,7 @@
- while((event=read_event(calfile))) {
- if (event->id == modified_event->id)
- {
-- (const CALEVENT*)event = modified_event;
-+ event = modified_event;
- /*is more required here to assign objects, a loop through all the properties*/
- /* We actually only want to modify any individual property, not the whole thing..
- TODO */
-
diff --git a/dev-libs/libmcal/files/libmcal-0.7-libdir.patch b/dev-libs/libmcal/files/libmcal-0.7-libdir.patch
deleted file mode 100644
index b784993aed01..000000000000
--- a/dev-libs/libmcal/files/libmcal-0.7-libdir.patch
+++ /dev/null
@@ -1,25 +0,0 @@
-diff -Naur libmcal.orig/Makefile.in libmcal/Makefile.in
---- libmcal.orig/Makefile.in 2003-01-28 09:45:21.000000000 -0800
-+++ libmcal/Makefile.in 2005-02-06 21:20:58.860199158 -0800
-@@ -20,17 +20,17 @@
- all: libmcal.a libmcal.so
-
- install: libmcal.a libmcal.so
-- mkdir -p ${DESTDIR}@prefix@/lib/
-+ mkdir -p ${DESTDIR}@libdir@
- mkdir -p ${DESTDIR}@prefix@/include/mcal/
-- install -m 755 -o 0 -g 0 libmcal.a libmcal.so ${DESTDIR}@prefix@/lib
-+ install -m 755 -o 0 -g 0 libmcal.a libmcal.so ${DESTDIR}@libdir@
- install -m 644 -o 0 -g 0 \
- mcal.h bool.h datetime.h drivers.h cal_misc.h icalroutines.h \
- ${DESTDIR}@prefix@/include/mcal/
- touch installed
-
- install-strip: installed
-- strip ${DESTDIR}@prefix@/lib/libmcal.so
-- strip ${DESTDIR}@prefix@/lib/libmcal.a
-+ strip ${DESTDIR}@libdir@/libmcal.so
-+ strip ${DESTDIR}@libdir@/libmcal.a
-
- libmcal.a: $(LIBOBJS)
- rm -f $(LIBCAL)
diff --git a/dev-libs/libmcal/files/libmcal-0.7-r6-fpic.patch b/dev-libs/libmcal/files/libmcal-0.7-r6-fpic.patch
deleted file mode 100644
index 72a199a3a57e..000000000000
--- a/dev-libs/libmcal/files/libmcal-0.7-r6-fpic.patch
+++ /dev/null
@@ -1,56 +0,0 @@
---- Makefile.in 2003-11-27 15:46:46.887752568 +0000
-+++ Makefile.in 2003-11-27 16:14:17.325847840 +0000
-@@ -7,7 +7,7 @@
-
- INCLUDE=@DRIVER_INCDIR@ ${OTHERINCDIR} -I.
-
--CFLAGS=-O0 -Wall -g ${INCLUDE} ${OTHER_CFLAGS}
-+CFLAGS=-O0 -Wall -g ${OTHER_CFLAGS}
-
- LIBOBJS=mcal.o datetime.o lex.ical_yy.o icalroutines.o cal_misc.o $(DRIVER_LIBS)
- ALLOBJS=${LIBOBJS} tester.o
-@@ -17,6 +17,9 @@
- LIBCAL=libmcal.a
- LIBCAL_SO=libmcal.so
-
-+%.o: %.c
-+ $(CC) $(CFLAGS) -fPIC $(INCLUDE) -c -o $@ $<
-+
- all: libmcal.a libmcal.so
-
- install: libmcal.a libmcal.so
-@@ -38,7 +41,7 @@
-
- libmcal.so: $(LIBOBJS)
- rm -f $(LIBCAL_SO)
-- gcc $(CFLAGS) -shared -o $(LIBCAL_SO) $(LIBOBJS)
-+ $(CC) -Wl,-soname=$@ $(CFLAGS) $(LDFLAGS) $(INCLUDE) -shared -o $(LIBCAL_SO) $(LIBOBJS)
-
- lex.ical_yy.c: icalscanner.lex
- $(FLEX) $<
---- mstore/Makefile.old 2004-08-08 16:37:13.641537544 +0100
-+++ mstore/Makefile 2004-08-08 16:37:35.473218624 +0100
-@@ -8,6 +8,10 @@
- ALLOBJS=mstore.o
- TARGET=mstore_driver.o
-
-+%.o: %.c
-+ $(CC) $(CFLAGS) -fPIC $(INCLUDE) -c -o $@ $<
-+
-+
- all: $(TARGET)
-
-
---- icap/Makefile.old 2004-08-08 16:38:58.353618888 +0100
-+++ icap/Makefile 2004-08-08 16:39:18.841504256 +0100
-@@ -7,6 +7,10 @@
- ALLOBJS=icap.o icaproutines.o lex.icap_yy.o
- TARGET=icap_driver.o
-
-+%.o: %.c
-+ $(CC) $(CFLAGS) -fPIC $(INCLUDE) -c -o $@ $<
-+
-+
- all: $(TARGET)
-
-
diff --git a/dev-libs/libmcal/files/libmcal-0.7-r6-gcc4.patch b/dev-libs/libmcal/files/libmcal-0.7-r6-gcc4.patch
deleted file mode 100644
index 065a82dc24c3..000000000000
--- a/dev-libs/libmcal/files/libmcal-0.7-r6-gcc4.patch
+++ /dev/null
@@ -1,34 +0,0 @@
-diff -urN libmcal-/icap/icap.c icap/icap.c
---- libmcal/icap/icap.c 2003-01-28 18:31:33.000000000 +0100
-+++ icap/icap.c 2005-08-12 15:04:36.000000000 +0200
-@@ -159,7 +159,7 @@
- if (!reopen) {
- if ((stream = calloc(1, sizeof(*stream))) == NULL)
- goto fail;
-- if ((DATA = calloc(1, sizeof(*DATA))) == NULL)
-+ if ((stream->data = calloc(1, sizeof(*DATA))) == NULL)
- goto fail;
-
- /* Copy host. */
-diff -urN libmcal/mstore/mstore.c mstore/mstore.c
---- libmcal/mstore/mstore.c 2005-08-12 15:30:52.000000000 +0200
-+++ mstore/mstore.c 2005-08-12 15:31:38.000000000 +0200
-@@ -308,7 +308,7 @@
- if (!reopen) {
- if ((stream = calloc(1, sizeof(*stream))) == NULL)
- goto fail;
-- if ((DATA = calloc(1, sizeof(*DATA))) == NULL)
-+ if ((stream->data = calloc(1, sizeof(*DATA))) == NULL)
- goto fail;
- }
-
-@@ -773,7 +773,7 @@
- while((event=read_event(calfile))) {
- if (event->id == modified_event->id)
- {
-- (const CALEVENT*)event = modified_event;
-+ event = modified_event;
- /*is more required here to assign objects, a loop through all the properties*/
- /* We actually only want to modify any individual property, not the whole thing..
- TODO */
-
diff --git a/dev-libs/libmcal/libmcal-0.7-r5.ebuild b/dev-libs/libmcal/libmcal-0.7-r5.ebuild
deleted file mode 100644
index eefc725bebca..000000000000
--- a/dev-libs/libmcal/libmcal-0.7-r5.ebuild
+++ /dev/null
@@ -1,69 +0,0 @@
-# Copyright 1999-2018 Gentoo Foundation
-# Distributed under the terms of the GNU General Public License v2
-
-EAPI=0
-
-inherit eutils multilib
-
-DRIVERS="mcaldrivers-0.9"
-SRC_URI_BASE="mirror://sourceforge/libmcal"
-DESCRIPTION="Modular Calendar Access Library"
-HOMEPAGE="http://mcal.chek.com/"
-SRC_URI="${SRC_URI_BASE}/${P}.tar.gz ${SRC_URI_BASE}/${DRIVERS}.tar.gz"
-
-LICENSE="GPL-2"
-SLOT="0"
-KEYWORDS="alpha amd64 arm hppa ia64 ~mips ppc ppc64 s390 sh sparc x86"
-IUSE="pam"
-
-DEPEND="pam? ( virtual/pam )"
-
-S=${WORKDIR}/${PN}
-
-src_unpack() {
- unpack ${A}
- cd ${S}
- mv ${S}/../mcal-drivers/* ${S}/
- einfo "Using /var/spool/calendar instead of /var/calendar"
- for i in FAQ-MCAL HOW-TO-MCAL mstore/mstore.c mstore/README mstore/Changelog; do
- sed -e 's|/var/calendar|/var/spool/calendar|g' -i ${i}
- done
- cd ${S}
- epatch "${FILESDIR}"/${P}-fpic.patch
- epatch "${FILESDIR}"/${P}-libdir.patch
- epatch "${FILESDIR}"/${P}-gcc4.patch
- epatch "${FILESDIR}"/${P}-flexfix.patch
-}
-
-src_compile() {
- use pam && CFLAGS="${CFLAGS} -DUSE_PAM -lpam" LDFLAGS="${LDFLAGS} -lpam"
- einfo "Setting up mstore back-end"
- cd ${S}/mstore
- emake CFLAGS="${CFLAGS} -I.." LDFLAGS="${LDFLAGS}" || die
-
- einfo "Setting up icap back-end"
- cd ${S}/icap
- emake CFLAGS="${CFLAGS} -I.." LDFLAGS="${LDFLAGS}" || die
-
- cd ${S}
- myconf="--with-mstore --with-icap"
- econf ${myconf} --libdir=/usr/$(get_libdir) || die
- emake CFLAGS="${CFLAGS}" LDFLAGS="${LDFLAGS}" || die
-}
-
-src_install() {
- make DESTDIR="${D}" install || die
- dodoc CHANGELOG FAQ-MCAL FEATURE-IMPLEMENTATION HOW-TO-MCAL LICENSE README
- newdoc mstore/README mstore-README
- newdoc mstore/Changelog mstore-Changelog
- newdoc icap/Changelog icap-Changelog
- dohtml FUNCTION-REF.html
- keepdir /var/spool/calendar
- fperms 1777 /var/spool/calendar
-}
-
-pkg_postinst() {
- einfo "You should start adding users to your calendar. ( e.g. htpasswd -c /etc/mpasswd username )"
- # enforce perms
- chmod 1777 ${ROOT}/var/spool/calendar
-}
diff --git a/dev-libs/libmcal/libmcal-0.7-r6.ebuild b/dev-libs/libmcal/libmcal-0.7-r6.ebuild
deleted file mode 100644
index 31955f636941..000000000000
--- a/dev-libs/libmcal/libmcal-0.7-r6.ebuild
+++ /dev/null
@@ -1,72 +0,0 @@
-# Copyright 1999-2017 Gentoo Foundation
-# Distributed under the terms of the GNU General Public License v2
-
-EAPI="5"
-
-inherit eutils multilib
-
-DRIVERS="mcaldrivers-0.9"
-SRC_URI_BASE="mirror://sourceforge/libmcal"
-DESCRIPTION="Modular Calendar Access Library"
-HOMEPAGE="http://mcal.chek.com/"
-SRC_URI="${SRC_URI_BASE}/${P}.tar.gz ${SRC_URI_BASE}/${DRIVERS}.tar.gz"
-
-LICENSE="GPL-2"
-SLOT="0"
-KEYWORDS="~alpha ~amd64 ~arm ~hppa ~ia64 ~mips ~ppc ~ppc64 ~s390 ~sh ~sparc ~x86"
-IUSE="pam"
-DOCS="CHANGELOG FAQ-MCAL FEATURE-IMPLEMENTATION HOW-TO-MCAL README"
-
-DEPEND="pam? ( virtual/pam )"
-
-S=${WORKDIR}/${PN}
-
-src_prepare() {
- mv "${S}"/../mcal-drivers/* "${S}"/
- einfo "Using /var/spool/calendar instead of /var/calendar"
- for i in FAQ-MCAL HOW-TO-MCAL mstore/mstore.c mstore/README mstore/Changelog; do
- sed -e 's|/var/calendar|/var/spool/calendar|g' -i ${i} || die
- done
- cd "${S}"
- epatch "${FILESDIR}"/${PN}-0.7-r6-fpic.patch
- epatch "${FILESDIR}"/${PN}-0.7-libdir.patch
- epatch "${FILESDIR}"/${PN}-0.7-r6-gcc4.patch
- epatch "${FILESDIR}"/${PN}-0.7-flexfix.patch
- epatch "${FILESDIR}"/${PN}-0.7-flex-2.5.37.patch
-}
-
-src_configure() {
- use pam && export CFLAGS="${CFLAGS} -DUSE_PAM -lpam" LDFLAGS="${LDFLAGS} -lpam"
-}
-
-src_compile() {
- einfo "Setting up mstore back-end"
- cd "${S}"/mstore
- emake CC="$(tc-getCC)" CFLAGS="${CFLAGS} -I.." LDFLAGS="${LDFLAGS}"
-
- einfo "Setting up icap back-end"
- cd "${S}"/icap
- emake CC="$(tc-getCC)" CFLAGS="${CFLAGS} -I.." LDFLAGS="${LDFLAGS}"
-
- cd "${S}"
- myconf="--with-mstore --with-icap"
- # Sorry repoman, this econf cannot be run until the above two compiles are
- # done.
- econf ${myconf} --libdir=/usr/$(get_libdir)
- emake CC="$(tc-getCC)" CFLAGS="${CFLAGS}" LDFLAGS="${LDFLAGS}"
-}
-
-src_install() {
- emake DESTDIR="${D}" install
- dodoc ${DOCS}
- newdoc mstore/README mstore-README
- newdoc mstore/Changelog mstore-Changelog
- newdoc icap/Changelog icap-Changelog
- dohtml FUNCTION-REF.html
- keepdir /var/spool/calendar
- fperms 1777 "${ROOT}"/var/spool/calendar
-}
-
-pkg_postinst() {
- einfo "You should start adding users to your calendar. ( e.g. htpasswd -c /etc/mpasswd username )"
-}
diff --git a/dev-libs/libmcal/metadata.xml b/dev-libs/libmcal/metadata.xml
deleted file mode 100644
index f0cf5708f1c8..000000000000
--- a/dev-libs/libmcal/metadata.xml
+++ /dev/null
@@ -1,11 +0,0 @@
-<?xml version="1.0" encoding="UTF-8"?>
-<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
-<pkgmetadata>
- <maintainer type="person">
- <email>robbat2@gentoo.org</email>
- <name>Robin H. Johnson</name>
- </maintainer>
- <upstream>
- <remote-id type="sourceforge">libmcal</remote-id>
- </upstream>
-</pkgmetadata>